[package] name = "oauth1-request" version = "0.6.1" edition = "2018" rust-version = "1.46.0" authors = ["Daiki Mizukami "] license = "MIT OR Apache-2.0" readme = "../README.md" keywords = ["oauth", "oauth1"] categories = ["authentication"] homepage = "https://github.com/tesaguri/oauth1-request-rs" repository = "https://github.com/tesaguri/oauth1-request-rs" documentation = "https://docs.rs/oauth1-request/0.6.1/oauth1_request/" description = """ Yet yet yet another OAuth 1.0 client library. """ [package.metadata.docs.rs] rustdoc-args = ["--cfg", "docsrs"] [[test]] name = "pull_9" required-features = ["std"] [dependencies] base64 = { version = "0.22", default-features = false } cfg-if = "1" fmt-cmp = "0.1.1" oauth-credentials = { version = "0.3", default-features = false } percent-encoding = { version = "2.1", default-features = false } rand = { version = "0.8", default-features = false, features = ["getrandom"] } # `derive` feature oauth1-request-derive = { version = "0.5", optional = true } # `either` feature either = { version = "1.2", optional = true } # `hmac-sha1` feature digest = { version = "0.10", optional = true } hmac = { version = "0.12.1", optional = true } sha1 = { version = "0.10", optional = true } # `rsa-sha1-06` feature rsa06 = { version = "0.6", optional = true, package = "rsa" } # `rsa-sha1-09` feature rsa09 = { version = "0.9", optional = true, package = "rsa" } [target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies] # `js` feature js-sys = { version = "0.3", optional = true } [dev-dependencies] base64 = "0.22" # Trick to make `proc-macro-crate` work in doctests. oauth1-request = { version = "0.6", path = "", default-features = false } version-sync = "0.9" [target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies] getrandom = { version = "0.2", features = ["js"] } wasm-bindgen-test = "0.3" [features] default = ["derive", "hmac-sha1", "std"] alloc = ["oauth-credentials/alloc"] derive = ["oauth1-request-derive"] hmac-sha1 = ["digest", "hmac", "sha1"] rsa-sha1-06 = ["digest", "rsa06", "sha1"] rsa-sha1-09 = ["digest", "rsa09", "sha1/oid"] js = ["js-sys"] serde = ["oauth-credentials/serde"] # Note: `percent-encoding` depends on `std` until servo/rust-url#691 lands. # std = ["alloc", "oauth-credentials/std", "rand/std", "rand/std_rng"] test = []