diff --git a/Cargo.lock b/Cargo.lock index a9f9d865..d22e74fa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -139,6 +139,12 @@ version = "0.22.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + [[package]] name = "bitflags" version = "2.5.0" @@ -195,6 +201,34 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "cookie" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7efb37c3e1ccb1ff97164ad95ac1606e8ccd35b3fa0a7d99a304c7f4a428cc24" +dependencies = [ + "percent-encoding", + "time", + "version_check", +] + +[[package]] +name = "cookie_store" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "387461abbc748185c3a6e1673d826918b450b87ff22639429c694619a83b6cf6" +dependencies = [ + "cookie", + "idna 0.3.0", + "log", + "publicsuffix", + "serde", + "serde_derive", + "serde_json", + "time", + "url", +] + [[package]] name = "core-foundation" version = "0.9.4" @@ -793,6 +827,16 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" +[[package]] +name = "idna" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e14ddfc70884202db2244c223200c204c2bda1bc6e0998d11b5e024d657209e6" +dependencies = [ + "unicode-bidi", + "unicode-normalization", +] + [[package]] name = "idna" version = "0.4.0" @@ -1045,7 +1089,7 @@ version = "0.10.66" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9529f4786b70a3e8c61e11179af17ab6188ad8d0ded78c5529441ed39d4bd9c1" dependencies = [ - "bitflags", + "bitflags 2.5.0", "cfg-if", "foreign-types", "libc", @@ -1197,6 +1241,22 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "psl-types" +version = "2.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33cb294fe86a74cbcf50d4445b37da762029549ebeea341421c7c70370f86cac" + +[[package]] +name = "publicsuffix" +version = "2.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96a8c1bda5ae1af7f99a2962e49df150414a43d62404644d98dd5c3a93d07457" +dependencies = [ + "idna 0.3.0", + "psl-types", +] + [[package]] name = "quick-error" version = "1.2.3" @@ -1248,7 +1308,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "469052894dcb553421e483e4209ee581a45100d31b4018de03e5a7ad86374a7e" dependencies = [ - "bitflags", + "bitflags 2.5.0", ] [[package]] @@ -1304,7 +1364,10 @@ dependencies = [ "async-compression", "base64 0.22.1", "bytes", + "cookie", + "cookie_store", "encoding_rs", + "futures-channel", "futures-core", "futures-util", "h2", @@ -1333,6 +1396,7 @@ dependencies = [ "serde_json", "serde_urlencoded", "sync_wrapper", + "system-configuration", "tokio", "tokio-native-tls", "tokio-rustls", @@ -1385,7 +1449,7 @@ version = "0.38.34" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f" dependencies = [ - "bitflags", + "bitflags 2.5.0", "errno", "libc", "linux-raw-sys", @@ -1473,7 +1537,7 @@ version = "2.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c627723fd09706bacdb5cf41499e95098555af3c3c29d014dc3c458ef6be11c0" dependencies = [ - "bitflags", + "bitflags 2.5.0", "core-foundation", "core-foundation-sys", "libc", @@ -1611,6 +1675,27 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" +[[package]] +name = "system-configuration" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7" +dependencies = [ + "bitflags 1.3.2", + "core-foundation", + "system-configuration-sys", +] + +[[package]] +name = "system-configuration-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a75fb188eb626b924683e3b95e3a48e63551fcfb51949de2f06a9d91dbee93c9" +dependencies = [ + "core-foundation-sys", + "libc", +] + [[package]] name = "tempfile" version = "3.10.1" diff --git a/crates/fhir-sdk/Cargo.toml b/crates/fhir-sdk/Cargo.toml index 52e277e4..2b6d057f 100644 --- a/crates/fhir-sdk/Cargo.toml +++ b/crates/fhir-sdk/Cargo.toml @@ -17,7 +17,7 @@ version = "0.14.1" workspace = true [features] -default = ["r5", "builders", "client", "docs", "http2", "default-tls", "charset"] +default = ["r5", "builders", "client", "docs", "dep-defaults"] client = [ "builders", "dep:async-trait", @@ -35,15 +35,21 @@ stu3 = ["fhir-model/stu3"] r4b = ["fhir-model/r4b"] r5 = ["fhir-model/r5"] docs = [] + +dep-defaults = ["reqwest?/default"] + http2 = ["reqwest?/http2"] default-tls = ["reqwest?/default-tls"] native-tls = ["reqwest?/native-tls"] native-tls-vendored = ["reqwest?/native-tls-vendored"] native-tls-alpn = ["reqwest?/native-tls-alpn"] rustls-tls = ["reqwest?/rustls-tls"] +rustls-tls-manual-roots = ["reqwest?/rustls-tls-manual-roots"] rustls-tls-webpki-roots = ["reqwest?/rustls-tls-webpki-roots"] rustls-tls-native-roots = ["reqwest?/rustls-tls-native-roots"] +blocking = ["reqwest?/blocking"] charset = ["reqwest?/charset"] +cookies = ["reqwest?/cookies"] gzip = ["reqwest?/gzip"] brotli = ["reqwest?/brotli"] zstd = ["reqwest?/zstd"] @@ -52,12 +58,13 @@ multipart = ["reqwest?/multipart"] stream = ["reqwest?/stream"] socks = ["reqwest?/socks"] hickory-dns = ["reqwest?/hickory-dns"] +macos-system-configuration = ["reqwest?/macos-system-configuration"] [dependencies] async-trait = { version = "0.1.68", optional = true } fhir-model = { path = "../fhir-model", version = "0.12.0", default-features = false } futures = { version = "0.3.28", optional = true } -reqwest = { version = "0.12.2", default-features = false, features = ["json", "http2", "charset"], optional = true } +reqwest = { version = "0.12.2", default-features = false, features = ["json"], optional = true } serde = { version = "1.0.159" } serde_json = { version = "1.0.95", optional = true } thiserror = { version = "1.0.40", optional = true } @@ -73,5 +80,5 @@ tracing-subscriber = { version = "0.3.17", features = ["env-filter"] } wiremock = "0.6.1" [package.metadata.docs.rs] -features = ["r5", "builders", "client", "docs"] +features = ["r5", "builders", "client", "docs", "dep-defaults"] no-default-features = true