# 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 = "2021"
name = "noise-core"
version = "0.1.0"
authors = ["Manu Mtz.-Almeida <manu.valladolid@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core of the Noise probabilistic language: lexer, parser, evaluator, sampler."
readme = "README.md"
keywords = [
    "probabilistic",
    "monte-carlo",
    "language",
    "interpreter",
    "sampling",
]
categories = [
    "science",
    "mathematics",
    "compilers",
]
license = "MIT"
repository = "https://github.com/manucorporat/noise-lang"

[features]
jit = [
    "dep:cranelift",
    "dep:cranelift-jit",
    "dep:cranelift-module",
    "dep:cranelift-native",
]

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

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

[dependencies.cranelift]
version = "0.127.4"
optional = true

[dependencies.cranelift-jit]
version = "0.127.4"
optional = true

[dependencies.cranelift-module]
version = "0.127.4"
optional = true

[dependencies.cranelift-native]
version = "0.127.4"
optional = true

[dependencies.wasm-encoder]
version = "0.252"

[dev-dependencies.criterion]
version = "0.5"
features = ["cargo_bench_support"]
default-features = false

[dev-dependencies.wasmi]
version = "1.1"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"
