| 1 |
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
| 2 |
# |
| 3 |
# When uploading crates to the registry Cargo will automatically |
| 4 |
# "normalize" Cargo.toml files for maximal compatibility |
| 5 |
# with all versions of Cargo and also rewrite `path` dependencies |
| 6 |
# to registry (e.g., crates.io) dependencies. |
| 7 |
# |
| 8 |
# If you are reading this file be aware that the original Cargo.toml |
| 9 |
# will likely look very different (and much more reasonable). |
| 10 |
# See Cargo.toml.orig for the original contents. |
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2024" |
| 14 |
rust-version = "1.88" |
| 15 |
name = "selinux" |
| 16 |
version = "0.6.3" |
| 17 |
authors = ["Koutheir Attouchi <[email protected]>"] |
| 18 |
build = false |
| 19 |
autolib = false |
| 20 |
autobins = false |
| 21 |
autoexamples = false |
| 22 |
autotests = false |
| 23 |
autobenches = false |
| 24 |
description = "Flexible Mandatory Access Control for Linux" |
| 25 |
homepage = "https://codeberg.org/koutheir/selinux.git" |
| 26 |
documentation = "https://docs.rs/selinux" |
| 27 |
readme = "README.md" |
| 28 |
keywords = [ |
| 29 |
"selinux", |
| 30 |
"security", |
| 31 |
"access-control", |
| 32 |
"linux", |
| 33 |
"filesystem", |
| 34 |
] |
| 35 |
categories = [ |
| 36 |
"api-bindings", |
| 37 |
"filesystem", |
| 38 |
"os", |
| 39 |
"os::linux-apis", |
| 40 |
] |
| 41 |
license = "MIT" |
| 42 |
repository = "https://codeberg.org/koutheir/selinux.git" |
| 43 |
|
| 44 |
[lib] |
| 45 |
name = "selinux" |
| 46 |
path = "src/lib.rs" |
| 47 |
|
| 48 |
[dependencies.bitflags] |
| 49 |
version = "2" |
| 50 |
|
| 51 |
[dependencies.errno] |
| 52 |
version = "0.3" |
| 53 |
|
| 54 |
[dependencies.libc] |
| 55 |
version = "0.2" |
| 56 |
|
| 57 |
[dependencies.once_cell] |
| 58 |
version = "1" |
| 59 |
|
| 60 |
[dependencies.parking_lot] |
| 61 |
version = "0.12" |
| 62 |
|
| 63 |
[dependencies.selinux-sys] |
| 64 |
version = "0.7" |
| 65 |
|
| 66 |
[dependencies.thiserror] |
| 67 |
version = "2" |
| 68 |
|
| 69 |
[dev-dependencies.assert_matches] |
| 70 |
version = "1" |
| 71 |
|
| 72 |
[dev-dependencies.serial_test] |
| 73 |
version = "3" |
| 74 |
|
| 75 |
[dev-dependencies.socketpair] |
| 76 |
version = "0.19" |
| 77 |
|
| 78 |
[dev-dependencies.tempfile] |
| 79 |
version = "3" |
| 80 |
|
| 81 |
[lints.clippy] |
| 82 |
absolute_paths = "allow" |
| 83 |
alloc_instead_of_core = "warn" |
| 84 |
arbitrary_source_item_ordering = "allow" |
| 85 |
default_numeric_fallback = "warn" |
| 86 |
doc_markdown = "allow" |
| 87 |
error_impl_error = "allow" |
| 88 |
exhaustive_structs = "allow" |
| 89 |
expect_used = "allow" |
| 90 |
field_scoped_visibility_modifiers = "allow" |
| 91 |
impl_trait_in_params = "allow" |
| 92 |
implicit_return = "allow" |
| 93 |
indexing_slicing = "allow" |
| 94 |
min_ident_chars = "allow" |
| 95 |
missing_docs_in_private_items = "allow" |
| 96 |
missing_errors_doc = "allow" |
| 97 |
missing_inline_in_public_items = "allow" |
| 98 |
missing_trait_methods = "allow" |
| 99 |
mod_module_files = "allow" |
| 100 |
module_name_repetitions = "allow" |
| 101 |
multiple_unsafe_ops_per_block = "allow" |
| 102 |
must_use_candidate = "warn" |
| 103 |
needless_pass_by_value = "allow" |
| 104 |
pattern_type_mismatch = "allow" |
| 105 |
pub_use = "allow" |
| 106 |
pub_with_shorthand = "allow" |
| 107 |
question_mark_used = "allow" |
| 108 |
separated_literal_suffix = "allow" |
| 109 |
shadow_reuse = "allow" |
| 110 |
shadow_unrelated = "allow" |
| 111 |
single_call_fn = "allow" |
| 112 |
single_char_lifetime_names = "warn" |
| 113 |
std_instead_of_alloc = "warn" |
| 114 |
std_instead_of_core = "warn" |
| 115 |
undocumented_unsafe_blocks = "allow" |
| 116 |
unused_self = "allow" |
| 117 |
unused_trait_names = "allow" |
| 118 |
upper_case_acronyms = "allow" |
| 119 |
|
| 120 |
[lints.clippy.all] |
| 121 |
level = "warn" |
| 122 |
priority = -1 |
| 123 |
|
| 124 |
[lints.clippy.pedantic] |
| 125 |
level = "warn" |
| 126 |
priority = -1 |
| 127 |
|
| 128 |
[lints.rust] |
| 129 |
missing_docs = "warn" |
| 130 |
unsafe_op_in_unsafe_fn = "warn" |