Skip to content

Commit

Permalink
fixup! chore: Define our license in the workspace and use it in every…
Browse files Browse the repository at this point in the history
… crate we have
  • Loading branch information
poljar committed Oct 4, 2024
1 parent 662414c commit 39b617a
Show file tree
Hide file tree
Showing 34 changed files with 33 additions and 34 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ resolver = "2"

[workspace.package]
rust-version = "1.76"
license = "Apache-2.0"

[workspace.dependencies]
anyhow = "1.0.68"
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "benchmarks"
description = "Matrix SDK benchmarks"
edition = "2021"
license = { workspace = true }
license = "Apache-2.0"
rust-version = { workspace = true }
version = "1.0.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion bindings/matrix-sdk-crypto-ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
rust-version = { workspace = true }
description = "Uniffi based bindings for the Rust SDK crypto crate"
repository = "https://github.com/matrix-org/matrix-rust-sdk"
license = { workspace = true }
license = "Apache-2.0"
publish = false

[lib]
Expand Down
2 changes: 1 addition & 1 deletion bindings/matrix-sdk-ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.2.0"
edition = "2021"
homepage = "https://github.com/matrix-org/matrix-rust-sdk"
keywords = ["matrix", "chat", "messaging", "ffi"]
license = { workspace = true }
license = "Apache-2.0"
readme = "README.md"
rust-version = { workspace = true }
repository = "https://github.com/matrix-org/matrix-rust-sdk"
Expand Down
2 changes: 1 addition & 1 deletion crates/matrix-sdk-base/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "The base component to build a Matrix client library."
edition = "2021"
homepage = "https://github.com/matrix-org/matrix-rust-sdk"
keywords = ["matrix", "chat", "messaging", "ruma", "nio"]
license = { workspace = true }
license = "Apache-2.0"
name = "matrix-sdk-base"
readme = "README.md"
repository = "https://github.com/matrix-org/matrix-rust-sdk"
Expand Down
2 changes: 1 addition & 1 deletion crates/matrix-sdk-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Collection of common types and imports used in the matrix-sdk"
edition = "2021"
homepage = "https://github.com/matrix-org/matrix-rust-sdk"
keywords = ["matrix", "chat", "messaging", "ruma", "nio"]
license = { workspace = true }
license = "Apache-2.0"
name = "matrix-sdk-common"
readme = "README.md"
repository = "https://github.com/matrix-org/matrix-rust-sdk"
Expand Down
2 changes: 1 addition & 1 deletion crates/matrix-sdk-crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Matrix encryption library"
edition = "2021"
homepage = "https://github.com/matrix-org/matrix-rust-sdk"
keywords = ["matrix", "chat", "messaging", "ruma", "nio"]
license = { workspace = true }
license = "Apache-2.0"
name = "matrix-sdk-crypto"
readme = "README.md"
repository = "https://github.com/matrix-org/matrix-rust-sdk"
Expand Down
2 changes: 1 addition & 1 deletion crates/matrix-sdk-indexeddb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "matrix-sdk-indexeddb"
version = "0.7.0"
repository = "https://github.com/matrix-org/matrix-rust-sdk"
description = "Web's IndexedDB Storage backend for matrix-sdk"
license = { workspace = true }
license = "Apache-2.0"
edition = "2021"
rust-version = { workspace = true }
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion crates/matrix-sdk-qrcode/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["Damir Jelić <poljar@termina.org.uk>"]
edition = "2021"
homepage = "https://github.com/matrix-org/matrix-rust-sdk"
keywords = ["matrix", "chat", "messaging", "ruma", "nio"]
license = { workspace = true }
license = "Apache-2.0"
readme = "README.md"
rust-version = { workspace = true }
repository = "https://github.com/matrix-org/matrix-rust-sdk"
Expand Down
2 changes: 1 addition & 1 deletion crates/matrix-sdk-sqlite/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.7.1"
edition = "2021"
repository = "https://github.com/matrix-org/matrix-rust-sdk"
description = "Sqlite storage backend for matrix-sdk"
license = { workspace = true }
license = "Apache-2.0"
rust-version = { workspace = true }

[features]
Expand Down
2 changes: 1 addition & 1 deletion crates/matrix-sdk-store-encryption/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.7.0"
edition = "2021"
description = "Helpers for encrypted storage keys for the Matrix SDK"
repository = "https://github.com/matrix-org/matrix-rust-sdk"
license = { workspace = true }
license = "Apache-2.0"
rust-version = { workspace = true }

[package.metadata.docs.rs]
Expand Down
2 changes: 1 addition & 1 deletion crates/matrix-sdk-ui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "GUI-centric utilities on top of matrix-rust-sdk (experimental)."
version = "0.7.0"
edition = "2021"
repository = "https://github.com/matrix-org/matrix-rust-sdk"
license = { workspace = true }
license = "Apache-2.0"
rust-version = { workspace = true }

[features]
Expand Down
2 changes: 1 addition & 1 deletion crates/matrix-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "A high level Matrix client-server library."
edition = "2021"
homepage = "https://github.com/matrix-org/matrix-rust-sdk"
keywords = ["matrix", "chat", "messaging", "ruma", "nio"]
license = { workspace = true }
license = "Apache-2.0"
name = "matrix-sdk"
readme = "README.md"
repository = "https://github.com/matrix-org/matrix-rust-sdk"
Expand Down
2 changes: 1 addition & 1 deletion examples/autojoin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "example-autojoin"
version = "0.1.0"
edition = "2021"
publish = false
license = { workspace = true }
license = "Apache-2.0"

[[bin]]
name = "example-autojoin"
Expand Down
2 changes: 1 addition & 1 deletion examples/backups/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "example-backups"
version = "0.1.0"
edition = "2021"
publish = false
license = { workspace = true }
license = "Apache-2.0"

[[bin]]
name = "example-backups"
Expand Down
2 changes: 1 addition & 1 deletion examples/command_bot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "example-command-bot"
version = "0.1.0"
edition = "2021"
publish = false
license = { workspace = true }
license = "Apache-2.0"

[[bin]]
name = "example-command-bot"
Expand Down
2 changes: 1 addition & 1 deletion examples/cross_signing_bootstrap/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "example-cross-signing-bootstrap"
version = "0.1.0"
edition = "2021"
publish = false
license = { workspace = true }
license = "Apache-2.0"

[[bin]]
name = "example-cross-signing-bootstrap"
Expand Down
2 changes: 1 addition & 1 deletion examples/custom_events/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "example-custom-events"
version = "0.1.0"
edition = "2021"
publish = false
license = { workspace = true }
license = "Apache-2.0"

[[bin]]
name = "example-custom-events"
Expand Down
2 changes: 1 addition & 1 deletion examples/emoji_verification/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "example-emoji-verification"
version = "0.1.0"
edition = "2021"
publish = false
license = { workspace = true }
license = "Apache-2.0"

[[bin]]
name = "example-emoji-verification"
Expand Down
2 changes: 1 addition & 1 deletion examples/get_profiles/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "example-get-profiles"
version = "0.1.0"
edition = "2021"
publish = false
license = { workspace = true }
license = "Apache-2.0"

[[bin]]
name = "example-get-profiles"
Expand Down
2 changes: 1 addition & 1 deletion examples/getting_started/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "example-getting-started"
version = "0.1.0"
edition = "2021"
publish = false
license = { workspace = true }
license = "Apache-2.0"

[[bin]]
name = "example-getting-started"
Expand Down
2 changes: 1 addition & 1 deletion examples/image_bot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "example-image-bot"
version = "0.1.0"
edition = "2021"
publish = false
license = { workspace = true }
license = "Apache-2.0"

[[bin]]
name = "example-image-bot"
Expand Down
2 changes: 1 addition & 1 deletion examples/login/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "example-login"
version = "0.1.0"
edition = "2021"
publish = false
license = { workspace = true }
license = "Apache-2.0"

[[bin]]
name = "example-login"
Expand Down
2 changes: 1 addition & 1 deletion examples/oidc_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "example-oidc-cli"
version = "0.1.0"
edition = "2021"
publish = false
license = { workspace = true }
license = "Apache-2.0"

[[bin]]
name = "example-oidc-cli"
Expand Down
2 changes: 1 addition & 1 deletion examples/persist_session/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "example-persist-session"
version = "0.1.0"
edition = "2021"
publish = false
license = { workspace = true }
license = "Apache-2.0"

[[bin]]
name = "example-persist-session"
Expand Down
2 changes: 1 addition & 1 deletion examples/qr-login/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "example-qr-login"
version = "0.1.0"
edition = "2021"
publish = false
license = { workspace = true }
license = "Apache-2.0"

[[bin]]
name = "example-qr-login"
Expand Down
2 changes: 1 addition & 1 deletion examples/secret_storage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "example-secret-storage"
version = "0.1.0"
edition = "2021"
publish = false
license = { workspace = true }
license = "Apache-2.0"

[[bin]]
name = "example-secret-storage"
Expand Down
2 changes: 1 addition & 1 deletion examples/timeline/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "example-timeline"
version = "0.1.0"
edition = "2021"
publish = false
license = { workspace = true }
license = "Apache-2.0"

[[bin]]
name = "example-timeline"
Expand Down
2 changes: 1 addition & 1 deletion labs/multiverse/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "multiverse"
version = "0.1.0"
edition = "2021"
publish = false
license = { workspace = true }
license = "Apache-2.0"

[[bin]]
name = "multiverse"
Expand Down
2 changes: 1 addition & 1 deletion testing/matrix-sdk-integration-testing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Internal integration testing for matrix-sdk crate"
version = "0.1.0"
edition = "2021"
publish = false
license = { workspace = true }
license = "Apache-2.0"

[dev-dependencies]
anyhow = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion testing/matrix-sdk-test-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Helper macros to write tests for the Matrix SDK"
edition = "2021"
homepage = "https://github.com/matrix-org/matrix-rust-sdk"
keywords = ["matrix", "chat", "messaging", "ruma"]
license = { workspace = true }
license = "Apache-2.0"
name = "matrix-sdk-test-macros"
readme = "README.md"
repository = "https://github.com/matrix-org/matrix-rust-sdk"
Expand Down
2 changes: 1 addition & 1 deletion testing/matrix-sdk-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Helpers to write tests for the Matrix SDK"
edition = "2021"
homepage = "https://github.com/matrix-org/matrix-rust-sdk"
keywords = ["matrix", "chat", "messaging", "ruma"]
license = { workspace = true }
license = "Apache-2.0"
name = "matrix-sdk-test"
readme = "README.md"
repository = "https://github.com/matrix-org/matrix-rust-sdk"
Expand Down
2 changes: 1 addition & 1 deletion uniffi-bindgen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "uniffi-bindgen"
version = "0.1.0"
edition = "2021"
publish = false
license = { workspace = true }
license = "Apache-2.0"

[dependencies]
uniffi = { workspace = true, features = ["cli"] }
2 changes: 1 addition & 1 deletion xtask/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "xtask"
version = "0.1.0"
edition = "2021"
publish = false
license = { workspace = true }
license = "Apache-2.0"

[[bin]]
name = "xtask"
Expand Down

0 comments on commit 39b617a

Please sign in to comment.