oxc/Cargo.toml
2023-04-22 22:09:53 +08:00

75 lines
2.3 KiB
TOML

[workspace]
resolver = "2"
members = ["crates/*", "tasks/*"]
[workspace.package]
authors = ["Boshen <boshenc@gmail.com>", "Oxc contributors"]
description = "Oxc is a JavaScript / TypeScript parser with full Test262 conformance."
edition = "2021"
homepage = "https://github.com/Boshen/oxc"
keywords = ["JavaScript", "TypeScript", "parser"]
license = "MIT"
repository = "https://github.com/Boshen/oxc"
[workspace.dependencies]
# Release:
# * Edit these versions, commit
# * cargo ws version --amend --no-git-tag --no-git-push
# publish = true
oxc_allocator = { version = "0.0.6", path = "crates/oxc_allocator" }
oxc_ast = { version = "0.0.6", path = "crates/oxc_ast" }
oxc_diagnostics = { version = "0.0.6", path = "crates/oxc_diagnostics" }
oxc_parser = { version = "0.0.6", path = "crates/oxc_parser" }
oxc_printer = { version = "0.0.6", path = "crates/oxc_printer" }
oxc_semantic = { version = "0.0.6", path = "crates/oxc_semantic" }
# publish = false
oxc_macros = { version = "0.0.0", path = "crates/oxc_macros" }
oxc_linter = { version = "0.0.0", path = "crates/oxc_linter" }
oxc_minifier = { version = "0.0.0", path = "crates/oxc_minifier" }
oxc_tasks_common = { path = "tasks/common" }
jemallocator = "0.5.0"
mimalloc = "0.1.36"
bitflags = "1.3.2"
bumpalo = "3.12.1"
compact_str = "0.7.0"
miette = "5.8.0"
rayon = "1.7.0"
rustc-hash = "1.1.0"
serde = "1.0.160"
serde_json = "1.0.96"
thiserror = "1.0.40"
clap = "4.2.4"
indextree = "4.6.0"
glob = "0.3.1"
lazy_static = "1.4.0"
phf = "0.11"
once_cell = "1.17.1"
project-root = "0.2.2"
pico-args = "0.5.0"
flate2 = "1.0.25"
[workspace.metadata.workspaces]
allow_branch = "main"
[profile.release.package.oxc_wasm]
opt-level = 'z'
[profile.release]
# Configurations explicitly listed here for clarity.
# Using the best options for performance.
opt-level = 3
lto = "fat"
codegen-units = 1
strip = "symbols"
debug = false
panic = "abort" # Let it crash and force ourselves to write safe Rust.
# Use the `--profile release-debug` flag to show symbols in release mode.
# e.g. `cargo build --profile release-debug`
[profile.release-debug]
inherits = "release"
strip = false
debug = true