val 0.4.0

An arbitrary precision calculator language
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"
name = "val"
version = "0.4.0"
authors = ["Liam <liam@scalzulli.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An arbitrary precision calculator language"
homepage = "https://github.com/terror/val"
readme = "README.md"
keywords = [
    "productivity",
    "compilers",
]
categories = [
    "science",
    "parser-implementations",
    "command-line-interface",
]
license = "CC0-1.0"
repository = "https://github.com/terror/val"
resolver = "2"

[features]
force-cross = [
    "dep:gmp-mpfr-sys",
    "gmp-mpfr-sys/force-cross",
]
use-system-libs = [
    "dep:gmp-mpfr-sys",
    "gmp-mpfr-sys/use-system-libs",
]

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

[[bin]]
name = "val"
path = "src/main.rs"

[[test]]
name = "integration"
path = "tests/integration.rs"

[[bench]]
name = "main"
path = "benches/main.rs"
harness = false

[dependencies.anyhow]
version = "1.0.102"

[dependencies.ariadne]
version = "0.6.0"

[dependencies.chumsky]
version = "0.13.0"
features = ["pratt"]

[dependencies.clap]
version = "4.5.60"
features = ["derive"]

[dependencies.gmp-mpfr-sys]
version = "~1.7"
optional = true
default-features = false

[dependencies.rug]
version = "1.30.0"
features = [
    "float",
    "rational",
    "std",
]
default-features = false

[dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]

[dev-dependencies.executable-path]
version = "1.0.1"

[dev-dependencies.indoc]
version = "2.0.7"

[dev-dependencies.pretty_assertions]
version = "1.4.1"

[dev-dependencies.tempfile]
version = "3.27.0"

[dev-dependencies.unindent]
version = "0.2.4"

[target.'cfg(not(target_family = "wasm"))'.dependencies.dirs]
version = "6.0.0"

[target.'cfg(not(target_family = "wasm"))'.dependencies.rustyline]
version = "18.0.0"

[lints.clippy]
arbitrary-source-item-ordering = "deny"
wildcard_imports = "allow"

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

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

[lints.rust]
unreachable_pub = "deny"

[profile.release]
lto = true
codegen-units = 1