[package]
edition = "2024"
rust-version = "1.91"
name = "token-privilege"
version = "0.1.1"
authors = [
"UncleSp1d3r <unclespid3r@evilbitlabs.io>",
"KryptoKat <kryptokat@evilbitlabs.io>",
]
build = false
exclude = [
"/.github",
"/.git",
"/.vscode",
"/docs",
"/reports",
"/.coderabbitai.yaml",
"/.editorconfig",
"/.markdownlint-cli2.jsonc",
"/.markdownlint.json",
"/.mdformat.toml",
"/.mergify.yml",
"/.pre-commit-config.yaml",
"/.prettierignore",
"/.bun-version",
"/.python-version",
"about.hbs",
"about.toml",
"cliff.toml",
"codecov.yml",
"deny.toml",
"justfile",
"mise.lock",
"mise.toml",
"release-plz.toml",
"rust-toolchain.toml",
"rustfmt.toml",
"AGENTS.md",
"CLAUDE.md",
"CODE_OF_CONDUCT.md",
"CONTRIBUTING.md",
"GOTCHAS.md",
"/.env.*",
"*.orig",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe Rust wrapper around Windows process token privilege and elevation detection APIs"
homepage = "https://evilbitlabs.io/token-privilege"
documentation = "https://docs.rs/token-privilege"
readme = "README.md"
keywords = [
"token",
"privilege",
"elevation",
"windows",
"security",
]
categories = [
"security",
"os::windows-apis",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/EvilBit-Labs/token-privilege"
[lib]
name = "token_privilege"
path = "src/lib.rs"
[[test]]
name = "integration_tests"
path = "tests/integration_tests.rs"
[[test]]
name = "proptest_tests"
path = "tests/proptest_tests.rs"
[dependencies.thiserror]
version = "2.0"
[dev-dependencies.proptest]
version = "1.6.0"
[target."cfg(windows)".dependencies.windows]
version = "0.62"
features = [
"Win32_Foundation",
"Win32_Security",
"Win32_System_Threading",
]
[lints.clippy]
arithmetic_side_effects = "warn"
as_conversions = "warn"
as_ptr_cast_mut = "warn"
cargo_common_metadata = "warn"
cast_possible_truncation = "warn"
cast_precision_loss = "warn"
cast_ptr_alignment = "warn"
cast_sign_loss = "warn"
clone_on_ref_ptr = "warn"
create_dir = "warn"
dbg_macro = "warn"
exhaustive_enums = "warn"
exit = "warn"
expect_used = "warn"
filetype_is_file = "warn"
float_cmp = "warn"
indexing_slicing = "warn"
integer_division = "warn"
large_stack_arrays = "warn"
let_underscore_must_use = "warn"
lossy_float_literal = "warn"
map_err_ignore = "warn"
match_same_arms = "warn"
missing_assert_message = "warn"
missing_docs_in_private_items = "allow"
missing_errors_doc = "warn"
missing_panics_doc = "deny"
module_name_repetitions = "warn"
modulo_arithmetic = "warn"
multiple_crate_versions = "warn"
must_use_candidate = "warn"
mutex_atomic = "warn"
mutex_integer = "warn"
panic = "deny"
rc_buffer = "warn"
rc_mutex = "warn"
redundant_type_annotations = "warn"
same_name_method = "warn"
self_named_module_files = "warn"
similar_names = "warn"
str_to_string = "warn"
string_add = "warn"
string_add_assign = "warn"
string_lit_as_bytes = "warn"
todo = "warn"
too_many_lines = "warn"
trivial_regex = "warn"
undocumented_unsafe_blocks = "deny"
unimplemented = "warn"
unnecessary_self_imports = "warn"
unreachable = "warn"
unseparated_literal_suffix = "warn"
unused_async = "warn"
unwrap_used = "deny"
verbose_file_reads = "warn"
wildcard_enum_match_arm = "warn"
zero_sized_map_values = "warn"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "deny"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "warn"
priority = -1
[lints.rust]
warnings = "deny"
[profile.dist]
lto = "thin"
overflow-checks = true
inherits = "release"
strip = true
[profile.release]
lto = "thin"
codegen-units = 1
overflow-checks = true
strip = true