[package]
edition = "2024"
rust-version = "1.85"
name = "lys-pass"
version = "0.3.4"
authors = ["Tom Whiting <tom@ablative.com.au>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lys pass verification, live permission checks and product draft execution"
readme = false
license = "Apache-2.0"
repository = "https://github.com/ablative-io/lys"
[features]
http = ["dep:reqwest"]
openapi = ["dep:utoipa"]
[lib]
name = "lys_pass"
path = "src/lib.rs"
[[test]]
name = "binding"
path = "tests/binding.rs"
[[test]]
name = "client_routes"
path = "tests/client_routes.rs"
[[test]]
name = "clock_skew"
path = "tests/clock_skew.rs"
[[test]]
name = "conformance"
path = "tests/conformance.rs"
[[test]]
name = "deliberate"
path = "tests/deliberate.rs"
[[test]]
name = "draft_approval"
path = "tests/draft_approval.rs"
[[test]]
name = "drafts"
path = "tests/drafts.rs"
[[test]]
name = "drafts_refused"
path = "tests/drafts_refused.rs"
[[test]]
name = "membership"
path = "tests/membership.rs"
[[test]]
name = "membership_admission"
path = "tests/membership_admission.rs"
[[test]]
name = "membership_pages"
path = "tests/membership_pages.rs"
[[test]]
name = "signin"
path = "tests/signin.rs"
[[test]]
name = "verify"
path = "tests/verify.rs"
[dependencies.base64]
version = "0.22"
[dependencies.ed25519-dalek]
version = "2"
features = [
"pkcs8",
"serde",
]
[dependencies.reqwest]
version = "=0.12.28"
features = [
"json",
"rustls-tls",
]
optional = true
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sha2]
version = "0.10"
[dependencies.thiserror]
version = "2"
[dependencies.url]
version = "=2.5.8"
[dependencies.utoipa]
version = "=5.5.0"
features = ["macros"]
optional = true
default-features = false
[dev-dependencies.tokio]
version = "=1.53.1"
features = [
"macros",
"net",
"rt-multi-thread",
"signal",
"sync",
"io-util",
]
[lints.clippy]
boxed_local = "warn"
clone_on_ref_ptr = "warn"
cloned_instead_of_copied = "warn"
expect_used = "warn"
explicit_deref_methods = "warn"
explicit_into_iter_loop = "warn"
explicit_iter_loop = "warn"
flat_map_option = "warn"
future_not_send = "warn"
get_unwrap = "warn"
implicit_clone = "warn"
inefficient_to_string = "warn"
large_futures = "warn"
large_stack_arrays = "warn"
large_types_passed_by_value = "warn"
manual_let_else = "warn"
map_err_ignore = "warn"
match_bool = "warn"
match_same_arms = "warn"
match_wild_err_arm = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_inception = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "warn"
panic = "warn"
rc_buffer = "warn"
redundant_clone = "warn"
result_large_err = "warn"
str_to_string = "allow"
string_lit_as_bytes = "warn"
struct_excessive_bools = "allow"
todo = "warn"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "warn"
unimplemented = "warn"
unnecessary_wraps = "warn"
unreachable = "warn"
unwrap_used = "warn"
used_underscore_binding = "warn"
vec_box = "warn"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1