-
-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Factor out common workspace Cargo.toml properties Signed-off-by: clux <[email protected]> * factor out forbid(unsafe_code) Signed-off-by: clux <[email protected]> * factor out deny(missing_docs) found one case where we were not in sync. raising an issue Signed-off-by: clux <[email protected]> * simplify msrv checks now that it's in sync cargo-msrv does not work with the new package factoring out but it wasn't really that helpful anyway... we only bumped the msrv when something broke, so.. Signed-off-by: clux <[email protected]> * fix merge missing change Signed-off-by: clux <[email protected]> --------- Signed-off-by: clux <[email protected]> Signed-off-by: Eirik A <[email protected]>
- Loading branch information
Showing
15 changed files
with
83 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,23 @@ members = [ | |
"examples", | ||
] | ||
|
||
[workspace.package] | ||
version = "0.88.1" | ||
authors = [ | ||
"clux <[email protected]>", | ||
"Natalie Klestrup Röijezon <[email protected]>", | ||
"kazk <[email protected]>", | ||
] | ||
repository = "https://github.com/kube-rs/kube" | ||
readme = "README.md" | ||
license = "Apache-2.0" | ||
edition = "2021" | ||
rust-version = "1.75.0" | ||
|
||
[workspace.lints.rust] | ||
unsafe_code = "forbid" | ||
missing_docs = "deny" | ||
|
||
[workspace.dependencies] | ||
ahash = "0.8" | ||
anyhow = "1.0.71" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
[package] | ||
name = "e2e" | ||
version = "0.1.0" | ||
authors = ["clux <[email protected]>"] | ||
publish = false | ||
edition = "2021" | ||
license = "Apache-2.0" | ||
version.workspace = true | ||
authors.workspace = true | ||
edition.workspace = true | ||
license.workspace = true | ||
|
||
[package.metadata.release] | ||
release = false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
[package] | ||
name = "kube-examples" | ||
version = "0.1.0" | ||
authors = [ | ||
"clux <[email protected]>", | ||
"Natalie Klestrup Röijezon <[email protected]>", | ||
"kazk <[email protected]>", | ||
] | ||
publish = false | ||
edition = "2021" | ||
license = "Apache-2.0" | ||
version.workspace = true | ||
authors.workspace = true | ||
edition.workspace = true | ||
license.workspace = true | ||
|
||
[package.metadata.release] | ||
release = false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
[package] | ||
name = "kube-client" | ||
version = "0.88.1" | ||
description = "Kubernetes client" | ||
authors = [ | ||
"clux <[email protected]>", | ||
"Natalie Klestrup Röijezon <[email protected]>", | ||
"kazk <[email protected]>", | ||
] | ||
license = "Apache-2.0" | ||
repository = "https://github.com/kube-rs/kube" | ||
readme = "../README.md" | ||
version.workspace = true | ||
authors.workspace = true | ||
repository.workspace = true | ||
readme.workspace = true | ||
license.workspace = true | ||
edition.workspace = true | ||
rust-version.workspace = true | ||
keywords = ["kubernetes", "client",] | ||
categories = ["web-programming::http-client", "configuration", "network-programming", "api-bindings"] | ||
rust-version = "1.75.0" | ||
edition = "2021" | ||
|
||
[features] | ||
default = ["client"] | ||
|
@@ -39,6 +35,9 @@ features = ["client", "rustls-tls", "openssl-tls", "ws", "oauth", "oidc", "jsonp | |
# Define the configuration attribute `docsrs`. Used to enable `doc_cfg` feature. | ||
rustdoc-args = ["--cfg", "docsrs"] | ||
|
||
[lints] | ||
workspace = true | ||
|
||
[dependencies] | ||
base64 = { workspace = true, optional = true } | ||
chrono = { workspace = true, optional = true } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
[package] | ||
name = "kube-core" | ||
description = "Kube shared types, traits and client-less behavior" | ||
version = "0.88.1" | ||
authors = [ | ||
"clux <[email protected]>", | ||
"kazk <[email protected]>", | ||
] | ||
edition = "2021" | ||
rust-version = "1.75.0" | ||
license = "Apache-2.0" | ||
version.workspace = true | ||
authors.workspace = true | ||
repository.workspace = true | ||
readme.workspace = true | ||
license.workspace = true | ||
edition.workspace = true | ||
rust-version.workspace = true | ||
keywords = ["kubernetes", "apimachinery"] | ||
categories = ["api-bindings", "encoding", "parser-implementations"] | ||
repository = "https://github.com/kube-rs/kube" | ||
readme = "../README.md" | ||
|
||
[package.metadata.docs.rs] | ||
features = ["ws", "admission", "jsonpatch", "k8s-openapi/latest"] | ||
rustdoc-args = ["--cfg", "docsrs"] | ||
|
||
[lints] | ||
workspace = true | ||
|
||
[features] | ||
ws = [] | ||
admission = ["json-patch"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
[package] | ||
name = "kube-derive" | ||
description = "Custom derives for the kube kubernetes crates" | ||
version = "0.88.1" | ||
authors = [ | ||
"clux <[email protected]>", | ||
"kazk <[email protected]>", | ||
] | ||
edition = "2021" | ||
rust-version = "1.75.0" | ||
license = "Apache-2.0" | ||
repository = "https://github.com/kube-rs/kube" | ||
readme = "../README.md" | ||
version.workspace = true | ||
authors.workspace = true | ||
repository.workspace = true | ||
readme.workspace = true | ||
license.workspace = true | ||
edition.workspace = true | ||
rust-version.workspace = true | ||
keywords = ["kubernetes", "macro", "customresource", "crd"] | ||
categories = ["api-bindings", "encoding"] | ||
|
||
[lints] | ||
workspace = true | ||
|
||
[dependencies] | ||
proc-macro2.workspace = true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
[package] | ||
name = "kube-runtime" | ||
version = "0.88.1" | ||
description = "Kubernetes futures controller runtime" | ||
authors = [ | ||
"Natalie Klestrup Röijezon <[email protected]>", | ||
"clux <[email protected]>", | ||
] | ||
license = "Apache-2.0" | ||
repository = "https://github.com/kube-rs/kube" | ||
readme = "../README.md" | ||
description = "Kubernetes controller runtime" | ||
version.workspace = true | ||
authors.workspace = true | ||
repository.workspace = true | ||
readme.workspace = true | ||
license.workspace = true | ||
edition.workspace = true | ||
rust-version.workspace = true | ||
keywords = ["kubernetes", "runtime", "reflector", "watcher", "controller"] | ||
categories = ["web-programming::http-client", "caching", "network-programming"] | ||
rust-version = "1.75.0" | ||
edition = "2021" | ||
|
||
[features] | ||
unstable-runtime = ["unstable-runtime-subscribe", "unstable-runtime-predicates", "unstable-runtime-stream-control", "unstable-runtime-reconcile-on"] | ||
|
@@ -26,6 +23,12 @@ features = ["k8s-openapi/latest", "unstable-runtime"] | |
# Define the configuration attribute `docsrs`. Used to enable `doc_cfg` feature. | ||
rustdoc-args = ["--cfg", "docsrs"] | ||
|
||
[lints] | ||
#workspace = true | ||
rust.unsafe_code = "forbid" | ||
# TODO: make this pass and switch to workspace lints | ||
#rust.missing_docs = "warn" | ||
|
||
[dependencies] | ||
futures.workspace = true | ||
kube-client = { path = "../kube-client", version = "=0.88.1", default-features = false, features = ["jsonpatch", "client"] } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
[package] | ||
name = "kube" | ||
version = "0.88.1" | ||
description = "Kubernetes client and async controller runtime" | ||
authors = [ | ||
"clux <[email protected]>", | ||
"Natalie Klestrup Röijezon <[email protected]>", | ||
"kazk <[email protected]>", | ||
] | ||
license = "Apache-2.0" | ||
repository = "https://github.com/kube-rs/kube" | ||
readme = "../README.md" | ||
version.workspace = true | ||
authors.workspace = true | ||
repository.workspace = true | ||
readme.workspace = true | ||
license.workspace = true | ||
edition.workspace = true | ||
rust-version.workspace = true | ||
keywords = ["kubernetes", "client", "runtime", "cncf"] | ||
categories = ["network-programming", "caching", "api-bindings", "configuration", "encoding"] | ||
rust-version = "1.75.0" | ||
edition = "2021" | ||
|
||
[features] | ||
default = ["client", "rustls-tls"] | ||
|
@@ -45,6 +41,9 @@ features = ["client", "rustls-tls", "openssl-tls", "derive", "ws", "oauth", "jso | |
# Define the configuration attribute `docsrs`. Used to enable `doc_cfg` feature. | ||
rustdoc-args = ["--cfg", "docsrs"] | ||
|
||
[lints] | ||
workspace = true | ||
|
||
[dependencies] | ||
kube-derive = { path = "../kube-derive", version = "=0.88.1", optional = true } | ||
kube-core = { path = "../kube-core", version = "=0.88.1" } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters