diff --git a/Cargo.toml b/Cargo.toml index a562f9804..0ceee4669 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,63 +1,5 @@ -[package] -name = "kube" -version = "0.27.0" -description = "Kubernetes client in the style of client-go" -authors = [ - "clux ", - "ynqa ", +[workspace] +default-members = ["kube"] +members = [ + "kube", ] -license = "Apache-2.0" -repository = "https://github.com/clux/kube-rs" -readme = "README.md" -keywords = ["kubernetes", "reflector", "informer", "client-go", "client-rust"] -categories = ["web-programming::http-client"] -edition = "2018" - -[dependencies] -base64 = "0.11.0" -chrono = "0.4.10" -dirs = "2.0.2" -serde = "1.0.104" -serde_derive = "1.0.104" -serde_json = "1.0.47" -serde_yaml = "0.8.11" -http = "0.2.0" -url = "2.1.1" -log = "0.4.8" -time = "0.2.6" -either = "1.5.3" -thiserror = "1.0.10" -futures-timer = "3.0.1" -futures-util = "0.3.4" -futures = "0.3.4" -openssl = { version = "0.10.28", optional = true } -rustls = { version = "0.16.0", optional = true } -bytes = "0.5.4" -Inflector = "0.11.4" - -[dependencies.reqwest] -version = "0.10.2" -default-features = false -features = ["json", "gzip", "stream"] - -[dependencies.k8s-openapi] -version = "0.7.1" -default-features = false -features = [] - -[features] -default = ["native-tls"] -native-tls = ["openssl", "reqwest/native-tls"] -rustls-tls = ["rustls", "reqwest/rustls-tls"] - -[dev-dependencies] -tempfile = "3.1.0" -env_logger = "0.7.1" -tokio = { version = "0.2.11", features = ["full"] } -anyhow = "1.0.26" -k8s-openapi-derive = "0.7.1" - -[dev-dependencies.k8s-openapi] -version = "0.7.1" -default-features = false -features = ["v1_17"] diff --git a/kube/Cargo.toml b/kube/Cargo.toml new file mode 100644 index 000000000..a562f9804 --- /dev/null +++ b/kube/Cargo.toml @@ -0,0 +1,63 @@ +[package] +name = "kube" +version = "0.27.0" +description = "Kubernetes client in the style of client-go" +authors = [ + "clux ", + "ynqa ", +] +license = "Apache-2.0" +repository = "https://github.com/clux/kube-rs" +readme = "README.md" +keywords = ["kubernetes", "reflector", "informer", "client-go", "client-rust"] +categories = ["web-programming::http-client"] +edition = "2018" + +[dependencies] +base64 = "0.11.0" +chrono = "0.4.10" +dirs = "2.0.2" +serde = "1.0.104" +serde_derive = "1.0.104" +serde_json = "1.0.47" +serde_yaml = "0.8.11" +http = "0.2.0" +url = "2.1.1" +log = "0.4.8" +time = "0.2.6" +either = "1.5.3" +thiserror = "1.0.10" +futures-timer = "3.0.1" +futures-util = "0.3.4" +futures = "0.3.4" +openssl = { version = "0.10.28", optional = true } +rustls = { version = "0.16.0", optional = true } +bytes = "0.5.4" +Inflector = "0.11.4" + +[dependencies.reqwest] +version = "0.10.2" +default-features = false +features = ["json", "gzip", "stream"] + +[dependencies.k8s-openapi] +version = "0.7.1" +default-features = false +features = [] + +[features] +default = ["native-tls"] +native-tls = ["openssl", "reqwest/native-tls"] +rustls-tls = ["rustls", "reqwest/rustls-tls"] + +[dev-dependencies] +tempfile = "3.1.0" +env_logger = "0.7.1" +tokio = { version = "0.2.11", features = ["full"] } +anyhow = "1.0.26" +k8s-openapi-derive = "0.7.1" + +[dev-dependencies.k8s-openapi] +version = "0.7.1" +default-features = false +features = ["v1_17"] diff --git a/src/api/crds.rs b/kube/src/api/crds.rs similarity index 100% rename from src/api/crds.rs rename to kube/src/api/crds.rs diff --git a/src/api/metadata.rs b/kube/src/api/metadata.rs similarity index 100% rename from src/api/metadata.rs rename to kube/src/api/metadata.rs diff --git a/src/api/mod.rs b/kube/src/api/mod.rs similarity index 100% rename from src/api/mod.rs rename to kube/src/api/mod.rs diff --git a/src/api/object.rs b/kube/src/api/object.rs similarity index 100% rename from src/api/object.rs rename to kube/src/api/object.rs diff --git a/src/api/resource.rs b/kube/src/api/resource.rs similarity index 100% rename from src/api/resource.rs rename to kube/src/api/resource.rs diff --git a/src/api/subresource.rs b/kube/src/api/subresource.rs similarity index 100% rename from src/api/subresource.rs rename to kube/src/api/subresource.rs diff --git a/src/api/typed.rs b/kube/src/api/typed.rs similarity index 100% rename from src/api/typed.rs rename to kube/src/api/typed.rs diff --git a/src/client/mod.rs b/kube/src/client/mod.rs similarity index 100% rename from src/client/mod.rs rename to kube/src/client/mod.rs diff --git a/src/config/apis.rs b/kube/src/config/apis.rs similarity index 100% rename from src/config/apis.rs rename to kube/src/config/apis.rs diff --git a/src/config/exec.rs b/kube/src/config/exec.rs similarity index 100% rename from src/config/exec.rs rename to kube/src/config/exec.rs diff --git a/src/config/incluster_config.rs b/kube/src/config/incluster_config.rs similarity index 100% rename from src/config/incluster_config.rs rename to kube/src/config/incluster_config.rs diff --git a/src/config/kube_config.rs b/kube/src/config/kube_config.rs similarity index 100% rename from src/config/kube_config.rs rename to kube/src/config/kube_config.rs diff --git a/src/config/mod.rs b/kube/src/config/mod.rs similarity index 100% rename from src/config/mod.rs rename to kube/src/config/mod.rs diff --git a/src/config/utils.rs b/kube/src/config/utils.rs similarity index 100% rename from src/config/utils.rs rename to kube/src/config/utils.rs diff --git a/src/lib.rs b/kube/src/lib.rs similarity index 100% rename from src/lib.rs rename to kube/src/lib.rs diff --git a/src/oauth2/mod.rs b/kube/src/oauth2/mod.rs similarity index 100% rename from src/oauth2/mod.rs rename to kube/src/oauth2/mod.rs diff --git a/src/runtime/informer.rs b/kube/src/runtime/informer.rs similarity index 100% rename from src/runtime/informer.rs rename to kube/src/runtime/informer.rs diff --git a/src/runtime/mod.rs b/kube/src/runtime/mod.rs similarity index 100% rename from src/runtime/mod.rs rename to kube/src/runtime/mod.rs diff --git a/src/runtime/reflector.rs b/kube/src/runtime/reflector.rs similarity index 100% rename from src/runtime/reflector.rs rename to kube/src/runtime/reflector.rs