-
Notifications
You must be signed in to change notification settings - Fork 41
/
Cargo.toml
68 lines (63 loc) · 2.53 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[package]
name = "k8s-openapi"
version = "0.24.0"
license = "Apache-2.0"
authors = ["Arnav Singh <[email protected]>"]
categories = ["api-bindings", "web-programming::http-client"]
description = "Bindings for the Kubernetes client API"
documentation = "https://arnavion.github.io/k8s-openapi/v0.24.x/k8s_openapi/"
edition = "2021"
keywords = ["client", "kubernetes", "k8s", "http"]
readme = "README.md"
repository = "https://github.com/Arnavion/k8s-openapi"
include = [
"build.rs",
"Cargo.toml",
"LICENSE",
"README.md",
"src/**/*",
]
# Dummy value to allow metadata to work, since passing metadata to downstream currently requires the links key to be set.
#
# It incorporates the version because we don't want to unnecessarily prevent multiple versions of k8s-openapi in the dep graph.
# Unfortunately, this means the env var that downstream needs to check also incorporates the version number, so downstream build scripts are recommended
# to enumerate all env vars looking for one with `DEP_K8S_OPENAPI_` prefix and `_VERSION` suffix, instead of looking it up by its whole name.
#
# See https://github.com/rust-lang/cargo/issues/3544 for being able to pass metadata to downstream without setting this key.
links = "k8s-openapi-0.24.0"
[dependencies]
base64 = { version = "0.22", default-features = false, features = [
"alloc", # for base64::Engine::decode and base64::Engine::encode
] }
chrono = { version = "0.4.1", default-features = false, features = [
"alloc", # for chrono::DateTime::<Utc>::to_rfc3339_opts
"serde", # for chrono::DateTime<Utc>: serde::Deserialize, serde::Serialize
] }
schemars = { version = "0.8", optional = true, default-features = false }
serde = { version = "1", default-features = false }
serde_json = { version = "1", default-features = false, features = [
"alloc", # "serde_json requires that either `std` (default) or `alloc` feature is enabled"
] }
serde-value = { version = "0.7", default-features = false }
[features]
# Each feature corresponds to a supported version of Kubernetes
earliest = ["v1_28"]
v1_28 = []
v1_29 = []
v1_30 = []
v1_31 = []
v1_32 = []
latest = ["v1_32"]
# Enable `schemars::JsonSchema` implementations on resource types.
schemars = ["dep:schemars"]
[package.metadata.docs.rs]
# docs.rs generates docs for the latest version. To see the docs for an older version, please generate them yourself.
features = ["latest"]
[workspace]
members = [
"k8s-openapi-codegen",
"k8s-openapi-codegen-common",
"k8s-openapi-derive",
"k8s-openapi-tests",
"k8s-openapi-tests-macro-deps",
]