[package]
edition = "2024"
rust-version = "1.88"
name = "siguldry"
version = "0.5.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
An implementation of the Sigul protocol.
"""
readme = "README.md"
keywords = [
"pesign",
"sigul",
"fedora",
]
license = "MIT"
repository = "https://github.com/fedora-infra/siguldry"
[features]
cli = [
"dep:clap",
"dep:tracing-subscriber",
"dep:toml",
"tokio/rt-multi-thread",
]
default = [
"server",
"cli",
]
server = [
"dep:cryptoki",
"dep:sqlx",
"dep:sequoia-keystore",
"dep:rustix",
]
sigul-client = []
[lib]
name = "siguldry"
path = "src/lib.rs"
[[bin]]
name = "siguldry-bridge"
path = "src/bin/siguldry-bridge/main.rs"
required-features = ["cli"]
[[bin]]
name = "siguldry-client"
path = "src/bin/siguldry-client/main.rs"
required-features = ["cli"]
[[bin]]
name = "siguldry-server"
path = "src/bin/siguldry-server/main.rs"
required-features = [
"server",
"cli",
]
[[bin]]
name = "siguldry-signer"
path = "src/bin/siguldry-signer/main.rs"
required-features = [
"server",
"cli",
]
[[test]]
name = "client_v1"
path = "tests/client_v1.rs"
[[test]]
name = "end_to_end"
path = "tests/end_to_end.rs"
[[bench]]
name = "end_to_end"
path = "benches/end_to_end.rs"
harness = false
[dependencies.anyhow]
version = "1"
[dependencies.asn1]
version = "0.23"
[dependencies.bytes]
version = "1"
[dependencies.clap]
version = "4.0"
features = [
"std",
"derive",
"env",
"help",
"usage",
"error-context",
]
optional = true
default-features = false
[dependencies.cryptoki]
version = "0.12"
optional = true
[dependencies.hex]
version = "0.4"
[dependencies.openssl]
version = "0.10"
[dependencies.rustix]
version = "1"
features = [
"termios",
"stdio",
]
optional = true
[dependencies.sequoia-keystore]
version = "0.7"
features = ["softkeys"]
optional = true
default-features = false
[dependencies.sequoia-openpgp]
version = "2"
features = ["crypto-openssl"]
default-features = false
[dependencies.serde]
version = "1.0.145"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sqlx]
version = "0.8"
features = [
"runtime-tokio",
"sqlite-unbundled",
"macros",
"migrate",
]
optional = true
[dependencies.tempfile]
version = "3"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1.27"
features = [
"macros",
"net",
"process",
"rt",
"io-util",
"signal",
"time",
]
[dependencies.tokio-openssl]
version = "0.6"
[dependencies.tokio-util]
version = "0.7"
features = [
"io",
"rt",
]
[dependencies.toml]
version = "1.0"
optional = true
[dependencies.tracing]
version = "0.1.36"
[dependencies.tracing-subscriber]
version = "0.3.17"
features = [
"std",
"registry",
"fmt",
"env-filter",
]
optional = true
default-features = false
[dependencies.uuid]
version = "1.6"
features = [
"v7",
"serde",
]
[dependencies.zerocopy]
version = "0.8"
features = [
"std",
"derive",
]
[dev-dependencies.anyhow]
version = "1"
[dev-dependencies.assert_cmd]
version = "2"
[dev-dependencies.criterion]
version = "0.8"
[dev-dependencies.proptest]
version = "1.6"
[dev-dependencies.pyo3]
version = "0.28"
features = ["auto-initialize"]
[dev-dependencies.sequoia-openpgp]
version = "2"
features = ["crypto-openssl"]
default-features = false
[dev-dependencies.tracing-test]
version = "0.2"
features = ["no-env-filter"]
[lints.clippy]
all = "warn"
checked_conversions = "warn"
dbg_macro = "warn"
debug_assert_with_mut_call = "warn"
empty_enums = "warn"
enum_glob_use = "warn"
exhaustive_enums = "warn"
exit = "warn"
expl_impl_clone_on_copy = "warn"
explicit_deref_methods = "warn"
explicit_into_iter_loop = "warn"
fallible_impl_from = "warn"
filter_map_next = "warn"
flat_map_option = "warn"
float_cmp_const = "warn"
fn_params_excessive_bools = "warn"
from_iter_instead_of_collect = "warn"
implicit_clone = "warn"
imprecise_flops = "warn"
indexing_slicing = "warn"
inefficient_to_string = "warn"
invalid_upcast_comparisons = "warn"
large_digit_groups = "warn"
large_stack_arrays = "warn"
large_types_passed_by_value = "warn"
linkedlist = "warn"
lossy_float_literal = "warn"
macro_use_imports = "warn"
map_unwrap_or = "warn"
match_same_arms = "warn"
match_wild_err_arm = "warn"
match_wildcard_for_single_variants = "warn"
mem_forget = "warn"
mut_mut = "warn"
mutex_integer = "warn"
needless_continue = "warn"
needless_for_each = "warn"
option_option = "warn"
path_buf_push_overwrite = "warn"
ptr_as_ptr = "warn"
rc_mutex = "warn"
ref_option_ref = "warn"
rest_pat_in_fully_bound_structs = "warn"
same_functions_in_if_condition = "warn"
semicolon_if_nothing_returned = "warn"
single_match_else = "warn"
string_add = "warn"
string_add_assign = "warn"
string_lit_as_bytes = "warn"
todo = "warn"
trait_duplication_in_bounds = "warn"
unimplemented = "warn"
unnested_or_patterns = "warn"
unused_self = "warn"
verbose_file_reads = "warn"
zero_sized_map_values = "warn"
[lints.rust]
future-incompatible = "warn"
nonstandard-style = "warn"
rust-2018-idioms = "warn"