Last active
March 2, 2022 10:01
-
-
Save jcaesar/a5497a11d90affac1c0f389e2ecbdf59 to your computer and use it in GitHub Desktop.
Repro
This file contains hidden or 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
/target |
This file contains hidden or 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 is automatically @generated by Cargo. | |
# It is not intended for manual editing. | |
version = 3 | |
[[package]] | |
name = "ahash" | |
version = "0.7.6" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" | |
dependencies = [ | |
"getrandom", | |
"once_cell", | |
"version_check", | |
] | |
[[package]] | |
name = "anyhow" | |
version = "1.0.55" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "159bb86af3a200e19a068f4224eae4c8bb2d0fa054c7e5d1cacd5cef95e684cd" | |
[[package]] | |
name = "autocfg" | |
version = "1.1.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" | |
[[package]] | |
name = "backoff" | |
version = "0.4.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "b62ddb9cb1ec0a098ad4bbf9344d0713fa193ae1a80af55febcff2627b6a00c1" | |
dependencies = [ | |
"getrandom", | |
"instant", | |
"rand", | |
] | |
[[package]] | |
name = "base64" | |
version = "0.13.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd" | |
[[package]] | |
name = "bitflags" | |
version = "1.3.2" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" | |
[[package]] | |
name = "bytes" | |
version = "1.1.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "c4872d67bab6358e59559027aa3b9157c53d9358c51423c17554809a8858e0f8" | |
[[package]] | |
name = "cc" | |
version = "1.0.73" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11" | |
[[package]] | |
name = "cfg-if" | |
version = "1.0.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" | |
[[package]] | |
name = "chrono" | |
version = "0.4.19" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73" | |
dependencies = [ | |
"libc", | |
"num-integer", | |
"num-traits", | |
"serde", | |
"winapi", | |
] | |
[[package]] | |
name = "core-foundation" | |
version = "0.9.3" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "194a7a9e6de53fa55116934067c844d9d749312f75c6f6d0980e8c252f8c2146" | |
dependencies = [ | |
"core-foundation-sys", | |
"libc", | |
] | |
[[package]] | |
name = "core-foundation-sys" | |
version = "0.8.3" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc" | |
[[package]] | |
name = "darling" | |
version = "0.13.1" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "d0d720b8683f8dd83c65155f0530560cba68cd2bf395f6513a483caee57ff7f4" | |
dependencies = [ | |
"darling_core", | |
"darling_macro", | |
] | |
[[package]] | |
name = "darling_core" | |
version = "0.13.1" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "7a340f241d2ceed1deb47ae36c4144b2707ec7dd0b649f894cb39bb595986324" | |
dependencies = [ | |
"fnv", | |
"ident_case", | |
"proc-macro2", | |
"quote", | |
"strsim", | |
"syn", | |
] | |
[[package]] | |
name = "darling_macro" | |
version = "0.13.1" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "72c41b3b7352feb3211a0d743dc5700a4e3b60f51bd2b368892d1e0f9a95f44b" | |
dependencies = [ | |
"darling_core", | |
"quote", | |
"syn", | |
] | |
[[package]] | |
name = "derivative" | |
version = "2.2.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" | |
dependencies = [ | |
"proc-macro2", | |
"quote", | |
"syn", | |
] | |
[[package]] | |
name = "dirs-next" | |
version = "2.0.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "b98cf8ebf19c3d1b223e151f99a4f9f0690dca41414773390fc824184ac833e1" | |
dependencies = [ | |
"cfg-if", | |
"dirs-sys-next", | |
] | |
[[package]] | |
name = "dirs-sys-next" | |
version = "0.1.2" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d" | |
dependencies = [ | |
"libc", | |
"redox_users", | |
"winapi", | |
] | |
[[package]] | |
name = "dyn-clone" | |
version = "1.0.4" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "ee2626afccd7561a06cf1367e2950c4718ea04565e20fb5029b6c7d8ad09abcf" | |
[[package]] | |
name = "either" | |
version = "1.6.1" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" | |
[[package]] | |
name = "fastrand" | |
version = "1.7.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "c3fcf0cee53519c866c09b5de1f6c56ff9d647101f81c1964fa632e148896cdf" | |
dependencies = [ | |
"instant", | |
] | |
[[package]] | |
name = "fnv" | |
version = "1.0.7" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" | |
[[package]] | |
name = "foreign-types" | |
version = "0.3.2" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" | |
dependencies = [ | |
"foreign-types-shared", | |
] | |
[[package]] | |
name = "foreign-types-shared" | |
version = "0.1.1" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" | |
[[package]] | |
name = "form_urlencoded" | |
version = "1.0.1" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191" | |
dependencies = [ | |
"matches", | |
"percent-encoding", | |
] | |
[[package]] | |
name = "futures" | |
version = "0.3.21" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "f73fe65f54d1e12b726f517d3e2135ca3125a437b6d998caf1962961f7172d9e" | |
dependencies = [ | |
"futures-channel", | |
"futures-core", | |
"futures-executor", | |
"futures-io", | |
"futures-sink", | |
"futures-task", | |
"futures-util", | |
] | |
[[package]] | |
name = "futures-channel" | |
version = "0.3.21" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "c3083ce4b914124575708913bca19bfe887522d6e2e6d0952943f5eac4a74010" | |
dependencies = [ | |
"futures-core", | |
"futures-sink", | |
] | |
[[package]] | |
name = "futures-core" | |
version = "0.3.21" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "0c09fd04b7e4073ac7156a9539b57a484a8ea920f79c7c675d05d289ab6110d3" | |
[[package]] | |
name = "futures-executor" | |
version = "0.3.21" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "9420b90cfa29e327d0429f19be13e7ddb68fa1cccb09d65e5706b8c7a749b8a6" | |
dependencies = [ | |
"futures-core", | |
"futures-task", | |
"futures-util", | |
] | |
[[package]] | |
name = "futures-io" | |
version = "0.3.21" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "fc4045962a5a5e935ee2fdedaa4e08284547402885ab326734432bed5d12966b" | |
[[package]] | |
name = "futures-macro" | |
version = "0.3.21" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "33c1e13800337f4d4d7a316bf45a567dbcb6ffe087f16424852d97e97a91f512" | |
dependencies = [ | |
"proc-macro2", | |
"quote", | |
"syn", | |
] | |
[[package]] | |
name = "futures-sink" | |
version = "0.3.21" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "21163e139fa306126e6eedaf49ecdb4588f939600f0b1e770f4205ee4b7fa868" | |
[[package]] | |
name = "futures-task" | |
version = "0.3.21" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "57c66a976bf5909d801bbef33416c41372779507e7a6b3a5e25e4749c58f776a" | |
[[package]] | |
name = "futures-util" | |
version = "0.3.21" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "d8b7abd5d659d9b90c8cba917f6ec750a74e2dc23902ef9cd4cc8c8b22e6036a" | |
dependencies = [ | |
"futures-channel", | |
"futures-core", | |
"futures-io", | |
"futures-macro", | |
"futures-sink", | |
"futures-task", | |
"memchr", | |
"pin-project-lite", | |
"pin-utils", | |
"slab", | |
] | |
[[package]] | |
name = "getrandom" | |
version = "0.2.5" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "d39cd93900197114fa1fcb7ae84ca742095eed9442088988ae74fa744e930e77" | |
dependencies = [ | |
"cfg-if", | |
"libc", | |
"wasi", | |
] | |
[[package]] | |
name = "hashbrown" | |
version = "0.11.2" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" | |
[[package]] | |
name = "hermit-abi" | |
version = "0.1.19" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" | |
dependencies = [ | |
"libc", | |
] | |
[[package]] | |
name = "http" | |
version = "0.2.6" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "31f4c6746584866f0feabcc69893c5b51beef3831656a968ed7ae254cdc4fd03" | |
dependencies = [ | |
"bytes", | |
"fnv", | |
"itoa", | |
] | |
[[package]] | |
name = "http-body" | |
version = "0.4.4" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "1ff4f84919677303da5f147645dbea6b1881f368d03ac84e1dc09031ebd7b2c6" | |
dependencies = [ | |
"bytes", | |
"http", | |
"pin-project-lite", | |
] | |
[[package]] | |
name = "http-range-header" | |
version = "0.3.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "0bfe8eed0a9285ef776bb792479ea3834e8b94e13d615c2f66d03dd50a435a29" | |
[[package]] | |
name = "httparse" | |
version = "1.6.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "9100414882e15fb7feccb4897e5f0ff0ff1ca7d1a86a23208ada4d7a18e6c6c4" | |
[[package]] | |
name = "httpdate" | |
version = "1.0.2" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421" | |
[[package]] | |
name = "hyper" | |
version = "0.14.17" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "043f0e083e9901b6cc658a77d1eb86f4fc650bbb977a4337dd63192826aa85dd" | |
dependencies = [ | |
"bytes", | |
"futures-channel", | |
"futures-core", | |
"futures-util", | |
"http", | |
"http-body", | |
"httparse", | |
"httpdate", | |
"itoa", | |
"pin-project-lite", | |
"socket2", | |
"tokio", | |
"tower-service", | |
"tracing", | |
"want", | |
] | |
[[package]] | |
name = "hyper-timeout" | |
version = "0.4.1" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "bbb958482e8c7be4bc3cf272a766a2b0bf1a6755e7a6ae777f017a31d11b13b1" | |
dependencies = [ | |
"hyper", | |
"pin-project-lite", | |
"tokio", | |
"tokio-io-timeout", | |
] | |
[[package]] | |
name = "hyper-tls" | |
version = "0.5.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905" | |
dependencies = [ | |
"bytes", | |
"hyper", | |
"native-tls", | |
"tokio", | |
"tokio-native-tls", | |
] | |
[[package]] | |
name = "ident_case" | |
version = "1.0.1" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" | |
[[package]] | |
name = "idna" | |
version = "0.2.3" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8" | |
dependencies = [ | |
"matches", | |
"unicode-bidi", | |
"unicode-normalization", | |
] | |
[[package]] | |
name = "indexmap" | |
version = "1.8.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "282a6247722caba404c065016bbfa522806e51714c34f5dfc3e4a3a46fcb4223" | |
dependencies = [ | |
"autocfg", | |
"hashbrown", | |
] | |
[[package]] | |
name = "instant" | |
version = "0.1.12" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c" | |
dependencies = [ | |
"cfg-if", | |
] | |
[[package]] | |
name = "itoa" | |
version = "1.0.1" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "1aab8fc367588b89dcee83ab0fd66b72b50b72fa1904d7095045ace2b0c81c35" | |
[[package]] | |
name = "json-patch" | |
version = "0.2.6" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "f995a3c8f2bc3dd52a18a583e90f9ec109c047fa1603a853e46bcda14d2e279d" | |
dependencies = [ | |
"serde", | |
"serde_json", | |
"treediff", | |
] | |
[[package]] | |
name = "jsonpath_lib" | |
version = "0.3.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "eaa63191d68230cccb81c5aa23abd53ed64d83337cacbb25a7b8c7979523774f" | |
dependencies = [ | |
"log", | |
"serde", | |
"serde_json", | |
] | |
[[package]] | |
name = "k8s-openapi" | |
version = "0.14.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "0489fc937cc7616a9abfa61bf39c250d7e32e1325ef028c8d9278dd24ea395b3" | |
dependencies = [ | |
"base64", | |
"bytes", | |
"chrono", | |
"http", | |
"percent-encoding", | |
"serde", | |
"serde-value", | |
"serde_json", | |
"url", | |
] | |
[[package]] | |
name = "ku" | |
version = "0.1.0" | |
dependencies = [ | |
"anyhow", | |
"k8s-openapi", | |
"kube", | |
"schemars", | |
"serde", | |
"serde_json", | |
"tokio", | |
] | |
[[package]] | |
name = "kube" | |
version = "0.69.1" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "86835e9147615457c1edc2b11c723acd1d21372e9cefa80a9d2742f6d69042d0" | |
dependencies = [ | |
"k8s-openapi", | |
"kube-client", | |
"kube-core", | |
"kube-derive", | |
"kube-runtime", | |
] | |
[[package]] | |
name = "kube-client" | |
version = "0.69.1" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "71f8aa916ee8290fbd0af76b3a28093a8786fccb6286902095a5243484447971" | |
dependencies = [ | |
"base64", | |
"bytes", | |
"chrono", | |
"dirs-next", | |
"either", | |
"futures", | |
"http", | |
"http-body", | |
"hyper", | |
"hyper-timeout", | |
"hyper-tls", | |
"jsonpath_lib", | |
"k8s-openapi", | |
"kube-core", | |
"openssl", | |
"pem", | |
"pin-project", | |
"secrecy", | |
"serde", | |
"serde_json", | |
"serde_yaml", | |
"thiserror", | |
"tokio", | |
"tokio-native-tls", | |
"tokio-util 0.6.9", | |
"tower", | |
"tower-http", | |
"tracing", | |
] | |
[[package]] | |
name = "kube-core" | |
version = "0.69.1" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "da41f98f213796a68fcd4510c88b5fd36de131c1ea30d152474c3f2e1bef1a72" | |
dependencies = [ | |
"chrono", | |
"form_urlencoded", | |
"http", | |
"json-patch", | |
"k8s-openapi", | |
"once_cell", | |
"schemars", | |
"serde", | |
"serde_json", | |
"thiserror", | |
] | |
[[package]] | |
name = "kube-derive" | |
version = "0.69.1" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "9cd6fdc2e1615a3aecd7e90fe4bda3ba32379e38193251d4ddaccba26579fe22" | |
dependencies = [ | |
"darling", | |
"proc-macro2", | |
"quote", | |
"serde_json", | |
"syn", | |
] | |
[[package]] | |
name = "kube-runtime" | |
version = "0.69.1" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "32e8bf2258850dbc0a062b561656a1d7020fa8040d552e149f0a0361f0d6794e" | |
dependencies = [ | |
"ahash", | |
"backoff", | |
"derivative", | |
"futures", | |
"json-patch", | |
"k8s-openapi", | |
"kube-client", | |
"parking_lot 0.11.2", | |
"pin-project", | |
"serde", | |
"serde_json", | |
"smallvec", | |
"thiserror", | |
"tokio", | |
"tokio-util 0.6.9", | |
"tracing", | |
] | |
[[package]] | |
name = "lazy_static" | |
version = "1.4.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" | |
[[package]] | |
name = "libc" | |
version = "0.2.119" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4" | |
[[package]] | |
name = "linked-hash-map" | |
version = "0.5.4" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "7fb9b38af92608140b86b693604b9ffcc5824240a484d1ecd4795bacb2fe88f3" | |
[[package]] | |
name = "lock_api" | |
version = "0.4.6" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "88943dd7ef4a2e5a4bfa2753aaab3013e34ce2533d1996fb18ef591e315e2b3b" | |
dependencies = [ | |
"scopeguard", | |
] | |
[[package]] | |
name = "log" | |
version = "0.4.14" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710" | |
dependencies = [ | |
"cfg-if", | |
] | |
[[package]] | |
name = "matches" | |
version = "0.1.9" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f" | |
[[package]] | |
name = "memchr" | |
version = "2.4.1" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a" | |
[[package]] | |
name = "mio" | |
version = "0.8.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "ba272f85fa0b41fc91872be579b3bbe0f56b792aa361a380eb669469f68dafb2" | |
dependencies = [ | |
"libc", | |
"log", | |
"miow", | |
"ntapi", | |
"winapi", | |
] | |
[[package]] | |
name = "miow" | |
version = "0.3.7" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21" | |
dependencies = [ | |
"winapi", | |
] | |
[[package]] | |
name = "native-tls" | |
version = "0.2.8" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "48ba9f7719b5a0f42f338907614285fb5fd70e53858141f69898a1fb7203b24d" | |
dependencies = [ | |
"lazy_static", | |
"libc", | |
"log", | |
"openssl", | |
"openssl-probe", | |
"openssl-sys", | |
"schannel", | |
"security-framework", | |
"security-framework-sys", | |
"tempfile", | |
] | |
[[package]] | |
name = "ntapi" | |
version = "0.3.7" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "c28774a7fd2fbb4f0babd8237ce554b73af68021b5f695a3cebd6c59bac0980f" | |
dependencies = [ | |
"winapi", | |
] | |
[[package]] | |
name = "num-integer" | |
version = "0.1.44" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db" | |
dependencies = [ | |
"autocfg", | |
"num-traits", | |
] | |
[[package]] | |
name = "num-traits" | |
version = "0.2.14" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290" | |
dependencies = [ | |
"autocfg", | |
] | |
[[package]] | |
name = "num_cpus" | |
version = "1.13.1" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1" | |
dependencies = [ | |
"hermit-abi", | |
"libc", | |
] | |
[[package]] | |
name = "once_cell" | |
version = "1.9.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "da32515d9f6e6e489d7bc9d84c71b060db7247dc035bbe44eac88cf87486d8d5" | |
[[package]] | |
name = "openssl" | |
version = "0.10.38" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "0c7ae222234c30df141154f159066c5093ff73b63204dcda7121eb082fc56a95" | |
dependencies = [ | |
"bitflags", | |
"cfg-if", | |
"foreign-types", | |
"libc", | |
"once_cell", | |
"openssl-sys", | |
] | |
[[package]] | |
name = "openssl-probe" | |
version = "0.1.5" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" | |
[[package]] | |
name = "openssl-sys" | |
version = "0.9.72" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "7e46109c383602735fa0a2e48dd2b7c892b048e1bf69e5c3b1d804b7d9c203cb" | |
dependencies = [ | |
"autocfg", | |
"cc", | |
"libc", | |
"pkg-config", | |
"vcpkg", | |
] | |
[[package]] | |
name = "ordered-float" | |
version = "2.10.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "7940cf2ca942593318d07fcf2596cdca60a85c9e7fab408a5e21a4f9dcd40d87" | |
dependencies = [ | |
"num-traits", | |
] | |
[[package]] | |
name = "parking_lot" | |
version = "0.11.2" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99" | |
dependencies = [ | |
"instant", | |
"lock_api", | |
"parking_lot_core 0.8.5", | |
] | |
[[package]] | |
name = "parking_lot" | |
version = "0.12.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "87f5ec2493a61ac0506c0f4199f99070cbe83857b0337006a30f3e6719b8ef58" | |
dependencies = [ | |
"lock_api", | |
"parking_lot_core 0.9.1", | |
] | |
[[package]] | |
name = "parking_lot_core" | |
version = "0.8.5" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "d76e8e1493bcac0d2766c42737f34458f1c8c50c0d23bcb24ea953affb273216" | |
dependencies = [ | |
"cfg-if", | |
"instant", | |
"libc", | |
"redox_syscall", | |
"smallvec", | |
"winapi", | |
] | |
[[package]] | |
name = "parking_lot_core" | |
version = "0.9.1" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "28141e0cc4143da2443301914478dc976a61ffdb3f043058310c70df2fed8954" | |
dependencies = [ | |
"cfg-if", | |
"libc", | |
"redox_syscall", | |
"smallvec", | |
"windows-sys", | |
] | |
[[package]] | |
name = "pem" | |
version = "1.0.2" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "e9a3b09a20e374558580a4914d3b7d89bd61b954a5a5e1dcbea98753addb1947" | |
dependencies = [ | |
"base64", | |
] | |
[[package]] | |
name = "percent-encoding" | |
version = "2.1.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" | |
[[package]] | |
name = "pin-project" | |
version = "1.0.10" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "58ad3879ad3baf4e44784bc6a718a8698867bb991f8ce24d1bcbe2cfb4c3a75e" | |
dependencies = [ | |
"pin-project-internal", | |
] | |
[[package]] | |
name = "pin-project-internal" | |
version = "1.0.10" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "744b6f092ba29c3650faf274db506afd39944f48420f6c86b17cfe0ee1cb36bb" | |
dependencies = [ | |
"proc-macro2", | |
"quote", | |
"syn", | |
] | |
[[package]] | |
name = "pin-project-lite" | |
version = "0.2.8" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "e280fbe77cc62c91527259e9442153f4688736748d24660126286329742b4c6c" | |
[[package]] | |
name = "pin-utils" | |
version = "0.1.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" | |
[[package]] | |
name = "pkg-config" | |
version = "0.3.24" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "58893f751c9b0412871a09abd62ecd2a00298c6c83befa223ef98c52aef40cbe" | |
[[package]] | |
name = "ppv-lite86" | |
version = "0.2.16" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872" | |
[[package]] | |
name = "proc-macro2" | |
version = "1.0.36" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029" | |
dependencies = [ | |
"unicode-xid", | |
] | |
[[package]] | |
name = "quote" | |
version = "1.0.15" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145" | |
dependencies = [ | |
"proc-macro2", | |
] | |
[[package]] | |
name = "rand" | |
version = "0.8.5" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" | |
dependencies = [ | |
"libc", | |
"rand_chacha", | |
"rand_core", | |
] | |
[[package]] | |
name = "rand_chacha" | |
version = "0.3.1" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" | |
dependencies = [ | |
"ppv-lite86", | |
"rand_core", | |
] | |
[[package]] | |
name = "rand_core" | |
version = "0.6.3" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7" | |
dependencies = [ | |
"getrandom", | |
] | |
[[package]] | |
name = "redox_syscall" | |
version = "0.2.11" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "8380fe0152551244f0747b1bf41737e0f8a74f97a14ccefd1148187271634f3c" | |
dependencies = [ | |
"bitflags", | |
] | |
[[package]] | |
name = "redox_users" | |
version = "0.4.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "528532f3d801c87aec9def2add9ca802fe569e44a544afe633765267840abe64" | |
dependencies = [ | |
"getrandom", | |
"redox_syscall", | |
] | |
[[package]] | |
name = "remove_dir_all" | |
version = "0.5.3" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7" | |
dependencies = [ | |
"winapi", | |
] | |
[[package]] | |
name = "ryu" | |
version = "1.0.9" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "73b4b750c782965c211b42f022f59af1fbceabdd026623714f104152f1ec149f" | |
[[package]] | |
name = "schannel" | |
version = "0.1.19" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "8f05ba609c234e60bee0d547fe94a4c7e9da733d1c962cf6e59efa4cd9c8bc75" | |
dependencies = [ | |
"lazy_static", | |
"winapi", | |
] | |
[[package]] | |
name = "schemars" | |
version = "0.8.8" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "c6b5a3c80cea1ab61f4260238409510e814e38b4b563c06044edf91e7dc070e3" | |
dependencies = [ | |
"dyn-clone", | |
"schemars_derive", | |
"serde", | |
"serde_json", | |
] | |
[[package]] | |
name = "schemars_derive" | |
version = "0.8.8" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "41ae4dce13e8614c46ac3c38ef1c0d668b101df6ac39817aebdaa26642ddae9b" | |
dependencies = [ | |
"proc-macro2", | |
"quote", | |
"serde_derive_internals", | |
"syn", | |
] | |
[[package]] | |
name = "scopeguard" | |
version = "1.1.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" | |
[[package]] | |
name = "secrecy" | |
version = "0.8.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "9bd1c54ea06cfd2f6b63219704de0b9b4f72dcc2b8fdef820be6cd799780e91e" | |
dependencies = [ | |
"serde", | |
"zeroize", | |
] | |
[[package]] | |
name = "security-framework" | |
version = "2.6.1" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "2dc14f172faf8a0194a3aded622712b0de276821addc574fa54fc0a1167e10dc" | |
dependencies = [ | |
"bitflags", | |
"core-foundation", | |
"core-foundation-sys", | |
"libc", | |
"security-framework-sys", | |
] | |
[[package]] | |
name = "security-framework-sys" | |
version = "2.6.1" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "0160a13a177a45bfb43ce71c01580998474f556ad854dcbca936dd2841a5c556" | |
dependencies = [ | |
"core-foundation-sys", | |
"libc", | |
] | |
[[package]] | |
name = "serde" | |
version = "1.0.136" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "ce31e24b01e1e524df96f1c2fdd054405f8d7376249a5110886fb4b658484789" | |
dependencies = [ | |
"serde_derive", | |
] | |
[[package]] | |
name = "serde-value" | |
version = "0.7.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "f3a1a3341211875ef120e117ea7fd5228530ae7e7036a779fdc9117be6b3282c" | |
dependencies = [ | |
"ordered-float", | |
"serde", | |
] | |
[[package]] | |
name = "serde_derive" | |
version = "1.0.136" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "08597e7152fcd306f41838ed3e37be9eaeed2b61c42e2117266a554fab4662f9" | |
dependencies = [ | |
"proc-macro2", | |
"quote", | |
"syn", | |
] | |
[[package]] | |
name = "serde_derive_internals" | |
version = "0.25.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "1dbab34ca63057a1f15280bdf3c39f2b1eb1b54c17e98360e511637aef7418c6" | |
dependencies = [ | |
"proc-macro2", | |
"quote", | |
"syn", | |
] | |
[[package]] | |
name = "serde_json" | |
version = "1.0.79" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "8e8d9fa5c3b304765ce1fd9c4c8a3de2c8db365a5b91be52f186efc675681d95" | |
dependencies = [ | |
"indexmap", | |
"itoa", | |
"ryu", | |
"serde", | |
] | |
[[package]] | |
name = "serde_yaml" | |
version = "0.8.23" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "a4a521f2940385c165a24ee286aa8599633d162077a54bdcae2a6fd5a7bfa7a0" | |
dependencies = [ | |
"indexmap", | |
"ryu", | |
"serde", | |
"yaml-rust", | |
] | |
[[package]] | |
name = "signal-hook-registry" | |
version = "1.4.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0" | |
dependencies = [ | |
"libc", | |
] | |
[[package]] | |
name = "slab" | |
version = "0.4.5" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "9def91fd1e018fe007022791f865d0ccc9b3a0d5001e01aabb8b40e46000afb5" | |
[[package]] | |
name = "smallvec" | |
version = "1.8.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "f2dd574626839106c320a323308629dcb1acfc96e32a8cba364ddc61ac23ee83" | |
[[package]] | |
name = "socket2" | |
version = "0.4.4" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "66d72b759436ae32898a2af0a14218dbf55efde3feeb170eb623637db85ee1e0" | |
dependencies = [ | |
"libc", | |
"winapi", | |
] | |
[[package]] | |
name = "strsim" | |
version = "0.10.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" | |
[[package]] | |
name = "syn" | |
version = "1.0.86" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b" | |
dependencies = [ | |
"proc-macro2", | |
"quote", | |
"unicode-xid", | |
] | |
[[package]] | |
name = "tempfile" | |
version = "3.3.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "5cdb1ef4eaeeaddc8fbd371e5017057064af0911902ef36b39801f67cc6d79e4" | |
dependencies = [ | |
"cfg-if", | |
"fastrand", | |
"libc", | |
"redox_syscall", | |
"remove_dir_all", | |
"winapi", | |
] | |
[[package]] | |
name = "thiserror" | |
version = "1.0.30" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "854babe52e4df1653706b98fcfc05843010039b406875930a70e4d9644e5c417" | |
dependencies = [ | |
"thiserror-impl", | |
] | |
[[package]] | |
name = "thiserror-impl" | |
version = "1.0.30" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "aa32fd3f627f367fe16f893e2597ae3c05020f8bba2666a4e6ea73d377e5714b" | |
dependencies = [ | |
"proc-macro2", | |
"quote", | |
"syn", | |
] | |
[[package]] | |
name = "tinyvec" | |
version = "1.5.1" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "2c1c1d5a42b6245520c249549ec267180beaffcc0615401ac8e31853d4b6d8d2" | |
dependencies = [ | |
"tinyvec_macros", | |
] | |
[[package]] | |
name = "tinyvec_macros" | |
version = "0.1.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" | |
[[package]] | |
name = "tokio" | |
version = "1.17.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "2af73ac49756f3f7c01172e34a23e5d0216f6c32333757c2c61feb2bbff5a5ee" | |
dependencies = [ | |
"bytes", | |
"libc", | |
"memchr", | |
"mio", | |
"num_cpus", | |
"once_cell", | |
"parking_lot 0.12.0", | |
"pin-project-lite", | |
"signal-hook-registry", | |
"socket2", | |
"tokio-macros", | |
"winapi", | |
] | |
[[package]] | |
name = "tokio-io-timeout" | |
version = "1.2.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "30b74022ada614a1b4834de765f9bb43877f910cc8ce4be40e89042c9223a8bf" | |
dependencies = [ | |
"pin-project-lite", | |
"tokio", | |
] | |
[[package]] | |
name = "tokio-macros" | |
version = "1.7.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "b557f72f448c511a979e2564e55d74e6c4432fc96ff4f6241bc6bded342643b7" | |
dependencies = [ | |
"proc-macro2", | |
"quote", | |
"syn", | |
] | |
[[package]] | |
name = "tokio-native-tls" | |
version = "0.3.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "f7d995660bd2b7f8c1568414c1126076c13fbb725c40112dc0120b78eb9b717b" | |
dependencies = [ | |
"native-tls", | |
"tokio", | |
] | |
[[package]] | |
name = "tokio-util" | |
version = "0.6.9" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "9e99e1983e5d376cd8eb4b66604d2e99e79f5bd988c3055891dcd8c9e2604cc0" | |
dependencies = [ | |
"bytes", | |
"futures-core", | |
"futures-sink", | |
"log", | |
"pin-project-lite", | |
"slab", | |
"tokio", | |
] | |
[[package]] | |
name = "tokio-util" | |
version = "0.7.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "64910e1b9c1901aaf5375561e35b9c057d95ff41a44ede043a03e09279eabaf1" | |
dependencies = [ | |
"bytes", | |
"futures-core", | |
"futures-sink", | |
"log", | |
"pin-project-lite", | |
"tokio", | |
] | |
[[package]] | |
name = "tower" | |
version = "0.4.12" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "9a89fd63ad6adf737582df5db40d286574513c69a11dac5214dc3b5603d6713e" | |
dependencies = [ | |
"futures-core", | |
"futures-util", | |
"pin-project", | |
"pin-project-lite", | |
"tokio", | |
"tokio-util 0.7.0", | |
"tower-layer", | |
"tower-service", | |
"tracing", | |
] | |
[[package]] | |
name = "tower-http" | |
version = "0.2.3" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "2bb284cac1883d54083a0edbdc9cabf931dfed87455f8c7266c01ece6394a43a" | |
dependencies = [ | |
"base64", | |
"bitflags", | |
"bytes", | |
"futures-core", | |
"futures-util", | |
"http", | |
"http-body", | |
"http-range-header", | |
"pin-project-lite", | |
"tower-layer", | |
"tower-service", | |
"tracing", | |
] | |
[[package]] | |
name = "tower-layer" | |
version = "0.3.1" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "343bc9466d3fe6b0f960ef45960509f84480bf4fd96f92901afe7ff3df9d3a62" | |
[[package]] | |
name = "tower-service" | |
version = "0.3.1" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "360dfd1d6d30e05fda32ace2c8c70e9c0a9da713275777f5a4dbb8a1893930c6" | |
[[package]] | |
name = "tracing" | |
version = "0.1.31" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "f6c650a8ef0cd2dd93736f033d21cbd1224c5a967aa0c258d00fcf7dafef9b9f" | |
dependencies = [ | |
"cfg-if", | |
"log", | |
"pin-project-lite", | |
"tracing-attributes", | |
"tracing-core", | |
] | |
[[package]] | |
name = "tracing-attributes" | |
version = "0.1.19" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "8276d9a4a3a558d7b7ad5303ad50b53d58264641b82914b7ada36bd762e7a716" | |
dependencies = [ | |
"proc-macro2", | |
"quote", | |
"syn", | |
] | |
[[package]] | |
name = "tracing-core" | |
version = "0.1.22" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "03cfcb51380632a72d3111cb8d3447a8d908e577d31beeac006f836383d29a23" | |
dependencies = [ | |
"lazy_static", | |
] | |
[[package]] | |
name = "treediff" | |
version = "3.0.2" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "761e8d5ad7ce14bb82b7e61ccc0ca961005a275a060b9644a2431aa11553c2ff" | |
dependencies = [ | |
"serde_json", | |
] | |
[[package]] | |
name = "try-lock" | |
version = "0.2.3" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" | |
[[package]] | |
name = "unicode-bidi" | |
version = "0.3.7" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "1a01404663e3db436ed2746d9fefef640d868edae3cceb81c3b8d5732fda678f" | |
[[package]] | |
name = "unicode-normalization" | |
version = "0.1.19" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "d54590932941a9e9266f0832deed84ebe1bf2e4c9e4a3554d393d18f5e854bf9" | |
dependencies = [ | |
"tinyvec", | |
] | |
[[package]] | |
name = "unicode-xid" | |
version = "0.2.2" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" | |
[[package]] | |
name = "url" | |
version = "2.2.2" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c" | |
dependencies = [ | |
"form_urlencoded", | |
"idna", | |
"matches", | |
"percent-encoding", | |
] | |
[[package]] | |
name = "vcpkg" | |
version = "0.2.15" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" | |
[[package]] | |
name = "version_check" | |
version = "0.9.4" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" | |
[[package]] | |
name = "want" | |
version = "0.3.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0" | |
dependencies = [ | |
"log", | |
"try-lock", | |
] | |
[[package]] | |
name = "wasi" | |
version = "0.10.2+wasi-snapshot-preview1" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" | |
[[package]] | |
name = "winapi" | |
version = "0.3.9" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" | |
dependencies = [ | |
"winapi-i686-pc-windows-gnu", | |
"winapi-x86_64-pc-windows-gnu", | |
] | |
[[package]] | |
name = "winapi-i686-pc-windows-gnu" | |
version = "0.4.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" | |
[[package]] | |
name = "winapi-x86_64-pc-windows-gnu" | |
version = "0.4.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" | |
[[package]] | |
name = "windows-sys" | |
version = "0.32.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "3df6e476185f92a12c072be4a189a0210dcdcf512a1891d6dff9edb874deadc6" | |
dependencies = [ | |
"windows_aarch64_msvc", | |
"windows_i686_gnu", | |
"windows_i686_msvc", | |
"windows_x86_64_gnu", | |
"windows_x86_64_msvc", | |
] | |
[[package]] | |
name = "windows_aarch64_msvc" | |
version = "0.32.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "d8e92753b1c443191654ec532f14c199742964a061be25d77d7a96f09db20bf5" | |
[[package]] | |
name = "windows_i686_gnu" | |
version = "0.32.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "6a711c68811799e017b6038e0922cb27a5e2f43a2ddb609fe0b6f3eeda9de615" | |
[[package]] | |
name = "windows_i686_msvc" | |
version = "0.32.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "146c11bb1a02615db74680b32a68e2d61f553cc24c4eb5b4ca10311740e44172" | |
[[package]] | |
name = "windows_x86_64_gnu" | |
version = "0.32.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "c912b12f7454c6620635bbff3450962753834be2a594819bd5e945af18ec64bc" | |
[[package]] | |
name = "windows_x86_64_msvc" | |
version = "0.32.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "504a2476202769977a040c6364301a3f65d0cc9e3fb08600b2bda150a0488316" | |
[[package]] | |
name = "yaml-rust" | |
version = "0.4.5" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "56c1936c4cc7a1c9ab21a1ebb602eb942ba868cbd44a99cb7cdc5892335e1c85" | |
dependencies = [ | |
"linked-hash-map", | |
] | |
[[package]] | |
name = "zeroize" | |
version = "1.5.3" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "50344758e2f40e3a1fcfc8f6f91aa57b5f8ebd8d27919fe6451f15aaaf9ee608" |
This file contains hidden or 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
[package] | |
name = "ku" | |
version = "0.1.0" | |
edition = "2021" | |
[[bin]] | |
name = "meh" | |
path = "meh.rs" | |
[dependencies] | |
kube = { version = "0.69.1", features = ["runtime", "derive"] } | |
serde = { version = "1.0.136", features = ["derive"] } | |
serde_json = "1.0.79" | |
k8s-openapi = { version = "0.14.0", features = ["v1_21"] } | |
anyhow = "1.0.55" | |
schemars = "0.8.8" | |
tokio = { version = "1.17.0", features = ["full"] } |
This file contains hidden or 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
use anyhow::Result; | |
use k8s_openapi::apiextensions_apiserver::pkg::apis::apiextensions::v1::CustomResourceDefinition; | |
use kube::{ | |
api::{DeleteParams, PostParams}, | |
Api, Client, CustomResource, CustomResourceExt, | |
}; | |
use schemars::JsonSchema; | |
use serde::{Deserialize, Serialize}; | |
use serde_json::Value as JsonValue; | |
use std::{ | |
collections::HashMap, | |
io::Write, | |
process::{Command, Stdio}, | |
time::Duration, | |
}; | |
use tokio::{task::spawn_blocking, time::sleep}; | |
#[derive(CustomResource, Deserialize, Serialize, Clone, Debug, JsonSchema)] | |
#[kube( | |
group = "playground.liftm.de", | |
version = "v1alpha1", | |
kind = "Test", | |
namespaced | |
)] | |
pub struct TestSpec { | |
foo: String, | |
#[serde(flatten)] | |
arbitrary: JsonValue, | |
} | |
#[tokio::main] | |
async fn main() -> Result<()> { | |
println!( | |
"CRD as generated: {}", | |
serde_json::to_string_pretty(&Test::crd())? | |
); | |
println!(""); | |
println!( | |
"Monkeypatched: {}", | |
serde_json::to_string_pretty(&fix_crd(Test::crd())?)? | |
); | |
let client = Client::try_default().await?; | |
let crds: Api<CustomResourceDefinition> = Api::all(client.clone()); | |
crds.delete(Test::crd_name(), &DeleteParams::default()) | |
.await | |
.ok(); | |
sleep(Duration::from_secs(2)).await; | |
crds.create(&PostParams::default(), &Test::crd()).await?; | |
let res = Api::<Test>::default_namespaced(client.clone()); | |
let test = TestSpec { | |
foo: "works".into(), | |
arbitrary: serde_json::json!({ | |
"bar": "iffy" | |
}), | |
}; | |
// So this works: | |
res.create(&PostParams::default(), &Test::new("asdf", test.clone())) | |
.await?; | |
// But this... wait wtf? | |
let mut kctl = Command::new("kubectl") | |
.args(["apply", "-f", "-"]) | |
.stdin(Stdio::piped()) | |
.spawn()?; | |
let mut stdin = kctl.stdin.take().expect("Failed to open stdin"); | |
spawn_blocking(move || { | |
let res = serde_json::to_string_pretty(&Test::new("bsdf", test.clone())) | |
.expect("Valid CR serializes"); | |
println!("kubectling: {}", &res); | |
stdin | |
.write_all(&res.as_bytes()) | |
.expect("Failed to write to stdin"); | |
}); | |
let output = | |
spawn_blocking(move || kctl.wait_with_output().expect("failed to wait on child")).await?; | |
anyhow::ensure!(output.status.success()); | |
Ok(()) | |
} | |
fn fix_crd(crd: CustomResourceDefinition) -> Result<CustomResourceDefinition> { | |
fn replace(json: JsonValue) -> JsonValue { | |
match json { | |
JsonValue::Array(a) => JsonValue::Array(a.into_iter().map(replace).collect()), | |
JsonValue::Object(m) => JsonValue::Object( | |
m.into_iter() | |
.map(|(k, v)| match k.as_str() { | |
"additionalProperties" => ( | |
"x-kubernetes-preserve-unknown-fields".into(), | |
JsonValue::Bool(true), | |
), | |
_ => (k, replace(v)), | |
}) | |
.collect(), | |
), | |
other => other, | |
} | |
} | |
let crd = serde_json::to_value(crd)?; | |
let crd = replace(crd); | |
let crd = serde_json::from_value(crd)?; | |
Ok(crd) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment