# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "freighter-auth" version = "1.0.0" authors = [ "Noah Kennedy ", "Kornel LesiƄski ", ] publish = [ "crates-io", "freighter", "freighter-staging", ] description = "Cloudflare's third-party Rust registry implementation" keywords = [ "registries", "freighter", ] categories = [] license = "MIT OR Apache-2.0" repository = "https://github.com/cloudflare/freighter" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [dependencies.anyhow] version = "1.0.79" [dependencies.async-trait] version = "0.1.77" [dependencies.axum] version = "0.6.9" default-features = false [dependencies.base64] version = "0.22" optional = true [dependencies.cookie] version = "0.18.1" optional = true [dependencies.deadpool-postgres] version = "0.13.2" features = ["serde"] optional = true [dependencies.freighter-api-types] version = "1.0.0" features = ["ownership"] [dependencies.hmac] version = "0.12.1" optional = true [dependencies.http] version = "0.2.11" [dependencies.jsonwebtoken] version = "9.3.0" optional = true [dependencies.parking_lot] version = "0.12.1" optional = true [dependencies.rand] version = "0.8.5" features = ["min_const_gen"] [dependencies.reqwest] version = "0.11.23" features = [ "json", "json", "default-tls", ] optional = true default-features = false [dependencies.serde] version = "1.0.195" features = ["derive"] [dependencies.serde_json] version = "1.0.71" optional = true [dependencies.sha2] version = "0.10.8" [dependencies.tempfile] version = "3.9.0" optional = true [dependencies.thiserror] version = "1.0.56" [dependencies.tokio] version = "1.35.1" features = [ "rt-multi-thread", "macros", "signal", "sync", ] optional = true [dependencies.tracing] version = "0.1.40" [dev-dependencies.tokio] version = "1.35.1" features = [ "rt-multi-thread", "macros", "signal", "sync", "macros", "rt", ] [features] cf-backend = [ "dep:jsonwebtoken", "dep:reqwest", "dep:serde_json", "dep:tokio", "dep:cookie", ] default = ["pg-backend"] fs-backend = [ "dep:base64", "dep:serde_json", "dep:parking_lot", "dep:tempfile", "dep:hmac", ] pg-backend = [ "dep:deadpool-postgres", "dep:tokio", ] yes-backend = [] [lints.clippy] cast_possible_wrap = "allow" cast_sign_loss = "allow" doc_markdown = "allow" inline_always = "allow" items_after_statements = "allow" match_same_arms = "allow" missing_errors_doc = "allow" missing_panics_doc = "allow" module_name_repetitions = "allow" needless_pass_by_value = "allow" redundant_closure_for_method_calls = "allow" struct_field_names = "allow" [lints.clippy.pedantic] level = "warn" priority = -1