[package]
edition = "2021"
rust-version = "1.99"
name = "milo-guards-code"
version = "0.1.3"
authors = ["Camilo Azula"]
build = false
exclude = ["tests/cases/"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Reads Python and JavaScript code and says what it is certain to do to files and what it runs, or that it does not understand it."
homepage = "https://github.com/camiloazula/milo-guards"
readme = "README.md"
keywords = [
"ai-agent",
"security",
"sandbox",
"shell",
"guard",
]
categories = [
"development-tools",
"command-line-interface",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/camiloazula/milo-guards"
[lib]
name = "milo_guards_code"
path = "src/lib.rs"
[[test]]
name = "acts"
path = "tests/acts.rs"
[[test]]
name = "cases"
path = "tests/cases.rs"
[[test]]
name = "modules"
path = "tests/modules.rs"
[[test]]
name = "robust"
path = "tests/robust.rs"
[[test]]
name = "understand"
path = "tests/understand.rs"
[dependencies.tree-sitter]
version = "0.26"
[dependencies.tree-sitter-javascript]
version = "0.25"
[dependencies.tree-sitter-python]
version = "0.25"
[lints.clippy]
assert_is_empty = "allow"
dbg_macro = "deny"
exit = "deny"
expect_used = "warn"
items_after_statements = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
mem_forget = "deny"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_continue = "allow"
needless_pass_by_value = "allow"
panic = "warn"
redundant_clone = "warn"
return_self_not_must_use = "allow"
similar_names = "allow"
struct_field_names = "allow"
todo = "warn"
too_many_lines = "allow"
unimplemented = "deny"
unused_self = "allow"
unwrap_used = "warn"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
elided_lifetimes_in_paths = "allow"
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
unused_qualifications = "warn"
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(coverage)"]