[package]
edition = "2024"
rust-version = "1.99"
name = "demesne-cli"
version = "3.0.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The demesne command line: validate, emit, introspect, scaffold, check, diff and coverage."
homepage = "https://github.com/foir-io/demesne"
readme = "README.md"
keywords = [
"authorization",
"rls",
"postgres",
"rebac",
"access-control",
]
categories = [
"command-line-utilities",
"authentication",
"database",
]
license = "Apache-2.0"
repository = "https://github.com/foir-io/demesne"
[features]
db = [
"dep:demesne-postgres",
"dep:postgres",
]
default = ["db"]
[lib]
name = "demesne_cli"
path = "src/lib.rs"
[[bin]]
name = "demesne"
path = "src/main.rs"
required-features = ["db"]
[[test]]
name = "check_pg"
path = "tests/check_pg.rs"
[[test]]
name = "warnings"
path = "tests/warnings.rs"
[dependencies.demesne-emit-go]
version = "3.0.0"
[dependencies.demesne-emit-sql]
version = "3.0.0"
[dependencies.demesne-emit-ts]
version = "3.0.0"
[dependencies.demesne-gocompat]
version = "3.0.0"
[dependencies.demesne-model]
version = "3.0.0"
[dependencies.demesne-postgres]
version = "3.0.0"
optional = true
[dependencies.demesne-runtime]
version = "3.0.0"
[dependencies.demesne-syntax]
version = "3.0.0"
[dependencies.postgres]
version = "0.19.14"
optional = true
[lints.clippy]
allow_attributes_without_reason = "warn"
assertions_on_result_states = "warn"
clone_on_ref_ptr = "warn"
dbg_macro = "warn"
deref_by_slicing = "warn"
disallowed_script_idents = "warn"
empty_drop = "warn"
empty_enum_variants_with_brackets = "warn"
empty_structs_with_brackets = "warn"
if_then_some_else_none = "warn"
literal_string_with_formatting_args = "allow"
map_err_ignore = "warn"
multiple_crate_versions = "allow"
multiple_unsafe_ops_per_block = "warn"
print_stderr = "warn"
print_stdout = "warn"
redundant_type_annotations = "warn"
renamed_function_params = "warn"
semicolon_outside_block = "warn"
todo = "warn"
too_long_first_doc_paragraph = "warn"
undocumented_unsafe_blocks = "warn"
unimplemented = "warn"
unneeded_field_pattern = "warn"
unused_result_ok = "warn"
unwrap_used = "warn"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.style]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "warn"
priority = -1
[lints.rust]
ambiguous_negative_literals = "warn"
missing_debug_implementations = "warn"
redundant_imports = "warn"
redundant_lifetimes = "warn"
trivial_numeric_casts = "warn"
unreachable_pub = "warn"
unsafe_code = "deny"
unused_lifetimes = "warn"