mirror of
https://github.com/facebook/react.git
synced 2026-02-26 18:58:05 +00:00
Sorry about the thrash in advance! This removes the top level `forget` directory which adds unnecessary nesting to our repo Hopefully everything still works
62 lines
2.3 KiB
TOML
62 lines
2.3 KiB
TOML
[workspace]
|
|
resolver = "2"
|
|
members = ["crates/*"]
|
|
|
|
[workspace.package]
|
|
authors = ["The React Team https://react.dev/community/team"]
|
|
description = "React Forget Compiler"
|
|
edition = "2021"
|
|
homepage = "https://github.com/facebook/react-forget"
|
|
keywords = ["JavaScript", "TypeScript", "React", "React Forget", "Forget", "Compiler"]
|
|
license = "MIT"
|
|
repository = "https://github.com/facebook/react-forget"
|
|
|
|
[workspace.dependencies]
|
|
# workspace crates
|
|
forget_build_hir = { path = "crates/forget_build_hir" }
|
|
forget_diagnostics = { path = "crates/forget_diagnostics" }
|
|
forget_estree = { path = "crates/forget_estree" }
|
|
forget_estree_codegen = { path = "crates/forget_estree_codegen" }
|
|
forget_fixtures = { path = "crates/forget_fixtures" }
|
|
forget_hermes_parser = { path = "crates/forget_hermes_parser" }
|
|
forget_hir = { path = "crates/forget_hir" }
|
|
forget_optimization = { path = "crates/forget_optimization" }
|
|
forget_reactive_ir = { path = "crates/forget_reactive_ir" }
|
|
forget_semantic_analysis = { path = "crates/forget_semantic_analysis" }
|
|
forget_ssa = { path = "crates/forget_ssa" }
|
|
forget_utils = { path = "crates/forget_utils" }
|
|
|
|
# dependencies
|
|
indexmap = { version = "2.0.0", features = ["serde"] }
|
|
insta = { version = "1.30.0", features = ["glob"] }
|
|
miette = { version = "5.9.0" }
|
|
prettyplease = "0.2.10"
|
|
quote = "1.0.29"
|
|
serde = { version = "1.0.167", features = ["serde_derive"] }
|
|
serde_json = "1.0.100"
|
|
stacker = "0.1.15"
|
|
static_assertions = "1.1.0"
|
|
syn = "2.0.23"
|
|
thiserror = "1.0.41"
|
|
hermes = { git = "https://github.com/facebook/hermes.git" }
|
|
juno_support = { git = "https://github.com/facebook/hermes.git" }
|
|
|
|
[profile.release]
|
|
# configuration adapted from oxc
|
|
# https://github.com/Boshen/oxc/blob/ea85ee9f2d64dd284c5b7410f491d81fb879abae/Cargo.toml#L89-L97
|
|
opt-level = 3
|
|
lto = "fat"
|
|
codegen-units = 1
|
|
strip = "symbols"
|
|
debug = false
|
|
panic = "abort" # Let it crash and force ourselves to write safe Rust.
|
|
|
|
# Make insta run faster by compiling with release mode optimizations
|
|
# https://docs.rs/insta/latest/insta/#optional-faster-runs
|
|
[profile.dev.package.insta]
|
|
opt-level = 3
|
|
|
|
# Make insta diffing libary faster by compiling with release mode optimizations
|
|
# https://docs.rs/insta/latest/insta/#optional-faster-runs
|
|
[profile.dev.package.similar]
|
|
opt-level = 3 |