# 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"
name = "ab-riscv-primitives"
version = "0.0.3"
authors = ["Nazar Mokrynskyi <nazar@mokrynskyi.com>"]
build = "build.rs"
links = "ab-riscv-primitives"
include = [
    "/src",
    "/build.rs",
    "/Cargo.toml",
    "/CHANGELOG.md",
    "/README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Composable RISC-V primitives (instructions, registers) and abstractions around them"
homepage = "https://github.com/nazar-pc/abundance/tree/main/crates/execution/ab-riscv-primitives"
readme = "README.md"
keywords = [
    "riscv",
    "risc-v",
    "decoder",
    "no-std",
]
license = "0BSD"
repository = "https://github.com/nazar-pc/abundance"

[package.metadata.docs.rs]
all-features = true

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

[dependencies.ab-riscv-macros]
version = "0.0.3"
features = ["proc-macro"]
default-features = false

[build-dependencies.ab-riscv-macros]
version = "0.0.3"
features = ["build"]
default-features = false

[lints.clippy]
allow_attributes = "warn"
as_pointer_underscore = "warn"
as_ptr_cast_mut = "deny"
assigning_clones = "warn"
cast_possible_wrap = "warn"
cast_sign_loss = "warn"
ptr_as_ptr = "warn"
undocumented_unsafe_blocks = "warn"

[lints.rust]
missing_debug_implementations = "warn"
rust_2018_idioms = "warn"

[lints.rust.unexpected_cfgs]
level = "allow"
priority = 1
check-cfg = ['cfg(target_arch, values("spirv"))']

[lints.rust.unreachable_pub]
level = "warn"
priority = 0
