rigless 0.2.0

Virtual hardware-in-the-loop runtime: run unmodified firmware on an emulated MCU with every peripheral, chip model and unit of virtual time in Rust, and a CPU core of its own that translates the firmware's instructions to host code
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.98.0"
name = "rigless"
version = "0.2.0"
authors = ["Wezley Sherman <wezley.sherman@riglesslabs.com>"]
build = "build.rs"
exclude = [
    "/tests",
    "/firmware",
    "/ci",
    "/fuzz",
    "/.gitlab-ci.yml",
    "/clippy.toml",
    "/deny.toml",
    "/rustfmt.toml",
    "/rust-toolchain.toml",
    "**/*.svd",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Virtual hardware-in-the-loop runtime: run unmodified firmware on an emulated MCU with every peripheral, chip model and unit of virtual time in Rust, and a CPU core of its own that translates the firmware's instructions to host code"
homepage = "https://riglesslabs.com"
readme = "README.md"
keywords = [
    "embedded",
    "emulation",
    "hil",
    "firmware",
    "stm32",
]
categories = [
    "embedded",
    "simulation",
    "emulators",
]
license = "(MIT OR Apache-2.0) AND Apache-2.0"
repository = "https://gitlab.com/rigless-labs/rigless"

[features]
cli = [
    "svd",
    "dep:clap",
    "dep:rigless-rtos",
    "dep:libc",
]
default = [
    "cli",
    "pixracer",
]
pixracer = ["stm32f427"]
stm32f427 = ["tables"]
svd = [
    "dep:svd-parser",
    "dep:anyhow",
]
tables = []

[lib]
name = "rigless"
path = "src/lib.rs"

[[bin]]
name = "rigless"
path = "src/main.rs"
required-features = ["cli"]

[dependencies.anyhow]
version = "1"
features = ["std"]
optional = true
default-features = false

[dependencies.clap]
version = "4"
features = [
    "std",
    "derive",
    "help",
    "usage",
    "error-context",
]
optional = true
default-features = false

[dependencies.cranelift-codegen]
version = "0.136"
features = [
    "std",
    "host-arch",
]
default-features = false

[dependencies.cranelift-frontend]
version = "0.136"
features = ["std"]
default-features = false

[dependencies.cranelift-jit]
version = "0.136"
default-features = false

[dependencies.cranelift-module]
version = "0.136"
default-features = false

[dependencies.cranelift-native]
version = "0.136"
features = ["std"]
default-features = false

[dependencies.postcard]
version = "1"
features = ["use-std"]
default-features = false

[dependencies.region]
version = "3"
default-features = false

[dependencies.rigless-rtos]
version = "0.2.0"
optional = true

[dependencies.rustc_apfloat]
version = "0.2"
default-features = false

[dependencies.serde]
version = "1"
features = [
    "std",
    "derive",
]
default-features = false

[dependencies.sha2]
version = "0.10"
default-features = false

[dependencies.svd-parser]
version = "0.14"
features = ["expand"]
optional = true
default-features = false

[dependencies.thiserror]
version = "2"
default-features = false

[dependencies.wasmtime-internal-jit-icache-coherence]
version = "49"
default-features = false

[dev-dependencies.proptest]
version = "1"
features = ["std"]
default-features = false

[target."cfg(unix)".dependencies.libc]
version = "0.2"
optional = true
default-features = false

[lints.clippy]
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
as_underscore = "warn"
dbg_macro = "deny"
exit = "deny"
infinite_loop = "warn"
let_underscore_must_use = "warn"
map_err_ignore = "warn"
mem_forget = "deny"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
mod_module_files = "deny"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
multiple_unsafe_ops_per_block = "deny"
must_use_candidate = "allow"
print_stderr = "deny"
print_stdout = "deny"
similar_names = "allow"
string_slice = "warn"
tests_outside_test_module = "warn"
todo = "deny"
undocumented_unsafe_blocks = "deny"
unimplemented = "deny"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unwrap_used = "deny"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.cargo]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
let_underscore_drop = "warn"
meta_variable_misuse = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
non_ascii_idents = "deny"
redundant_lifetimes = "warn"
single_use_lifetimes = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unit_bindings = "warn"
unreachable_pub = "warn"
unsafe_code = "deny"
unsafe_op_in_unsafe_fn = "deny"
unstable_features = "deny"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_qualifications = "warn"

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1

[lints.rustdoc]
bare_urls = "warn"
broken_intra_doc_links = "deny"
private_intra_doc_links = "warn"
unescaped_backticks = "warn"

[profile.profiling]
debug = 1
inherits = "release"
strip = false

[profile.release]
lto = "thin"
codegen-units = 1