Skip to content

Commit

Permalink
Use workspace inheritance to reduce duplication (#11126)
Browse files Browse the repository at this point in the history
This relies on Rust 1.65
  • Loading branch information
alex authored Jun 20, 2024
1 parent 8f7db77 commit 604594f
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 32 deletions.
11 changes: 9 additions & 2 deletions src/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
[package]
name = "cryptography-rust"
[workspace.package]
version = "0.1.0"
authors = ["The cryptography developers <[email protected]>"]
edition = "2021"
publish = false
# This specifies the MSRV
rust-version = "1.65.0"

[package]
name = "cryptography-rust"
version.workspace = true
authors.workspace = true
edition.workspace = true
publish.workspace = true
rust-version.workspace = true

[dependencies]
once_cell = "1"
cfg-if = "1"
Expand Down
11 changes: 5 additions & 6 deletions src/rust/cryptography-cffi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
[package]
name = "cryptography-cffi"
version = "0.1.0"
authors = ["The cryptography developers <[email protected]>"]
edition = "2021"
publish = false
# This specifies the MSRV
rust-version = "1.65.0"
version.workspace = true
authors.workspace = true
edition.workspace = true
publish.workspace = true
rust-version.workspace = true

[dependencies]
pyo3 = { version = "0.21.2", features = ["abi3"] }
Expand Down
11 changes: 5 additions & 6 deletions src/rust/cryptography-keepalive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
[package]
name = "cryptography-keepalive"
version = "0.1.0"
authors = ["The cryptography developers <[email protected]>"]
edition = "2021"
publish = false
# This specifies the MSRV
rust-version = "1.65.0"
version.workspace = true
authors.workspace = true
edition.workspace = true
publish.workspace = true
rust-version.workspace = true

[dependencies]
pyo3 = { version = "0.21.2", features = ["abi3"] }
11 changes: 5 additions & 6 deletions src/rust/cryptography-key-parsing/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
[package]
name = "cryptography-key-parsing"
version = "0.1.0"
authors = ["The cryptography developers <[email protected]>"]
edition = "2021"
publish = false
# This specifies the MSRV
rust-version = "1.65.0"
version.workspace = true
authors.workspace = true
edition.workspace = true
publish.workspace = true
rust-version.workspace = true

[dependencies]
asn1 = { version = "0.16.2", default-features = false }
Expand Down
11 changes: 5 additions & 6 deletions src/rust/cryptography-openssl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
[package]
name = "cryptography-openssl"
version = "0.1.0"
authors = ["The cryptography developers <[email protected]>"]
edition = "2021"
publish = false
# This specifies the MSRV
rust-version = "1.65.0"
version.workspace = true
authors.workspace = true
edition.workspace = true
publish.workspace = true
rust-version.workspace = true

[dependencies]
cfg-if = "1"
Expand Down
11 changes: 5 additions & 6 deletions src/rust/cryptography-x509-verification/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
[package]
name = "cryptography-x509-verification"
version = "0.1.0"
authors = ["The cryptography developers <[email protected]>"]
edition = "2021"
publish = false
# This specifies the MSRV
rust-version = "1.65.0"
version.workspace = true
authors.workspace = true
edition.workspace = true
publish.workspace = true
rust-version.workspace = true

[dependencies]
asn1 = { version = "0.16.2", default-features = false }
Expand Down

0 comments on commit 604594f

Please sign in to comment.