[package]
edition = "2021"
name = "bashrs-oracle"
version = "6.65.0"
authors = ["Pragmatic AI Labs"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ML-powered error classification oracle for bashrs using aprender (GPU-accelerated)"
readme = "README.md"
keywords = [
"shell",
"bash",
"linter",
"machine-learning",
"error-classification",
]
categories = [
"command-line-utilities",
"development-tools",
]
license = "MIT"
repository = "https://github.com/paiml/bashrs"
[features]
compressed-models = ["aprender/format-compression"]
default = ["compressed-models"]
gpu = ["aprender/gpu"]
[lib]
name = "bashrs_oracle"
path = "src/lib.rs"
[[bench]]
name = "classification"
path = "benches/classification.rs"
harness = false
[dependencies.anyhow]
version = "1.0"
[dependencies.aprender]
version = "0.26"
features = ["parallel"]
default-features = false
[dependencies.regex]
version = "1.11"
[dependencies.serde]
version = "1.0"
features = [
"derive",
"std",
]
default-features = false
[dependencies.serde_json]
version = "1.0.140"
[dependencies.thiserror]
version = "2.0.12"
[dependencies.tracing]
version = "0.1.41"
features = ["std"]
default-features = false
[dev-dependencies.criterion]
version = "0.6"
[dev-dependencies.proptest]
version = "1.6"
[dev-dependencies.tempfile]
version = "3.20.0"
[dev-dependencies.verificar]
version = "0.3"
[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
checked_conversions = "warn"
dbg_macro = "warn"
doc_markdown = "allow"
fn_params_excessive_bools = "allow"
if_not_else = "allow"
implicit_hasher = "allow"
inconsistent_struct_constructor = "allow"
items_after_statements = "allow"
manual_assert = "allow"
manual_string_new = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
option_if_let_else = "allow"
redundant_closure_for_method_calls = "allow"
redundant_else = "allow"
return_self_not_must_use = "allow"
similar_names = "allow"
single_match_else = "allow"
struct_excessive_bools = "allow"
struct_field_names = "allow"
todo = "warn"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
unimplemented = "warn"
uninlined_format_args = "allow"
unnecessary_wraps = "allow"
unreadable_literal = "allow"
used_underscore_binding = "allow"
wildcard_imports = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.expect_used]
level = "warn"
priority = 1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.clippy.unwrap_used]
level = "deny"
priority = 1
[lints.rust]
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "deny"
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(kani)",
"cfg(coverage)",
"cfg(trybuild_no_target)",
]