[package]
edition = "2024"
rust-version = "1.99"
name = "runic-diagnostics"
version = "0.1.0"
authors = ["Paul Schoenfelder"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An MLIR-inspired compiler framework"
homepage = "https://github.com/bitwalker/runic"
documentation = "https://github.com/bitwalker/runic"
readme = "README.md"
keywords = ["compiler"]
categories = ["compilers"]
license = "MIT"
repository = "https://github.com/bitwalker/runic"
[features]
arbitrary = [
"std",
"dep:proptest",
]
default = [
"std",
"derive",
]
derive = ["dep:runic-diagnostics-macros"]
embed-explanations = []
linked-registry = [
"std",
"dep:inventory",
]
serde = ["dep:serde"]
simd = ["annotate-snippets/simd"]
std = [
"annotate-snippets/std",
"serde/std",
]
zerocopy = ["dep:zerocopy"]
[lib]
name = "runic_diagnostics"
path = "src/lib.rs"
[[example]]
name = "arithmetic"
path = "examples/arithmetic/main.rs"
required-features = [
"std",
"derive",
]
[[example]]
name = "explain"
path = "examples/explain.rs"
[[example]]
name = "fail_fast"
path = "examples/fail_fast.rs"
[[example]]
name = "warning_only"
path = "examples/warning_only.rs"
[[test]]
name = "arithmetic_example"
path = "tests/arithmetic_example.rs"
required-features = [
"std",
"derive",
]
[[test]]
name = "derive"
path = "tests/derive.rs"
required-features = ["derive"]
[[test]]
name = "derive_compile"
path = "tests/derive_compile.rs"
required-features = ["derive"]
[[test]]
name = "registry"
path = "tests/registry.rs"
[[test]]
name = "registry_external"
path = "tests/registry_external.rs"
required-features = ["std"]
[[test]]
name = "rendering_and_sinks"
path = "tests/rendering_and_sinks.rs"
[[test]]
name = "std_subprocess"
path = "tests/std_subprocess.rs"
required-features = ["std"]
[[test]]
name = "wasm_runtime"
path = "tests/wasm_runtime.rs"
[dependencies.annotate-snippets]
version = "0.12.17"
default-features = false
[dependencies.inventory]
version = "0.3"
optional = true
[dependencies.paste]
version = "1.0"
[dependencies.proptest]
version = "1.11"
optional = true
[dependencies.runic-diagnostics-macros]
version = "0.1.0"
optional = true
[dependencies.serde]
version = "1.0"
features = [
"serde_derive",
"alloc",
"rc",
"alloc",
"derive",
]
optional = true
default-features = false
[dependencies.zerocopy]
version = "0.8"
features = ["derive"]
optional = true
default-features = false
[dev-dependencies.annotate-snippets]
version = "0.12.17"
features = ["testing-colors"]
default-features = false
[dev-dependencies.wasmi]
version = "1.1"
features = ["std"]
default-features = false