# 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 = "pipa-js"
version = "0.1.7"
authors = ["jinti<shenjindi@fourz.cn>"]
build = false
exclude = [
    "docs",
    "book",
    "examples",
    "benches",
    "tests",
    "test_js",
    "bench-v8",
    "test262",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A fast, minimal ES2023 JavaScript runtime built in Rust."
readme = "README.md"
license = "MIT"

[features]
default = ["repl"]
fetch = [
    "rustls",
    "webpki-roots",
    "flate2",
    "libc",
]
full_runtime_tests = []
process = []
repl = [
    "fetch",
    "process",
    "rustyline",
]

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

[[bin]]
name = "pipa"
path = "bin/pipa.rs"

[dependencies.flate2]
version = "1.1"
features = ["rust_backend"]
optional = true
default-features = false

[dependencies.libc]
version = "0.2"
optional = true

[dependencies.rustls]
version = "0.23"
features = [
    "ring",
    "tls12",
    "std",
]
optional = true
default-features = false

[dependencies.rustyline]
version = "18"
optional = true

[dependencies.webpki-roots]
version = "1.0.7"
optional = true

[dev-dependencies.serde_yaml]
version = "0.9"

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"
