[package] name = "surrealdb-jsonwebtoken" version = "8.3.0-surreal.1" authors = ["Rushmore Mushambi "] license = "MIT" readme = "README.md" description = "Temporary `jsonwebtoken` fork with Wasm support" homepage = "https://github.com/Keats/jsonwebtoken" repository = "https://github.com/Keats/jsonwebtoken" keywords = ["jwt", "api", "token", "jwk"] edition = "2021" include = ["src/**/*", "benches/**/*", "tests/**/*", "LICENSE", "README.md", "CHANGELOG.md"] rust-version = "1.56.0" [dependencies] serde_json = "1.0" serde = {version = "1.0", features = ["derive"] } base64 = "0.21.0" # For PEM decoding pem = {version = "2", optional = true} simple_asn1 = {version = "0.6", optional = true} [target.'cfg(not(target_arch = "wasm32"))'.dependencies] ring = { version = "0.16.5", features = ["std"] } [target.'cfg(target_arch="wasm32")'.dependencies] hmac = "0.12.1" rsa = "0.9.2" sha2 = { version = "0.10.7", features = ["oid"] } getrandom = { version = "0.2.10", features = ["js"] } rand = { version = "0.8.5", features = ["std"], default-features = false } [dev-dependencies] # For the custom time example time = "0.3" criterion = "0.4" [features] default = ["use_pem"] use_pem = ["pem", "simple_asn1"] [[bench]] name = "jwt" harness = false [badges] maintenance = { status = "passively-maintained" }