-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cargo.toml
92 lines (82 loc) · 3.06 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
[package]
name = "oxbuild"
version = "0.1.5"
description = "Ultra-fast typescript compiler"
authors = ["Don Isaac <don@donisaac.dev>"]
license = "MIT"
repository = "https://github.com/DonIsaac/oxbuild"
homepage = "https://github.com/DonIsaac/oxbuild"
keywords = ["typescript", "javascript", "compiler", "oxc", "oxbuild"]
categories = ["development-tools", "web-programming", "compilers"]
edition = "2021"
rust-version = "1.76.0" # Support last 6 minor versions
[[bin]]
name = "oxbuild"
path = "src/main.rs"
[dependencies]
anyhow = { version = "1.0.90" }
clap = { version = "4.5.20", features = ["cargo"] }
ignore = { version = "0.4.23" }
json-strip-comments = { version = "1.0.4" }
log = { version = "0.4.22" }
miette = { version = "7.2.0", features = ["fancy"] }
oxc = { version = "0.31.0", features = ["full"] }
package-json = { version = "0.4.0" }
pretty_env_logger = { version = "0.5.0" }
serde = { version = "1.0.210" }
serde_json = { version = "1.0.129" }
static_assertions = { version = "1.1.0" }
[lints.clippy]
all = { level = "warn", priority = -1 }
empty_docs = { level = "allow", priority = 1 }
dbg_macro = "warn"
print_stdout = "warn"
print_stderr = "warn"
module_name_repetitions = "allow"
too_many_lines = "allow"
must_use_candidate = "allow"
doc_markdown = "allow"
missing_const_for_fn = "allow"
# Set the settings for build scripts and proc-macros.
[profile.dev.build-override]
opt-level = 1
# defaults: https://doc.rust-lang.org/cargo/reference/profiles.html#release
[profile.release]
codegen-units = 4
debug = false # set to `true` for debugging
strip = "symbols" # set to `false` for debugging
lto = "thin"
panic = "abort" # set to `unwind` for backtraces
# The profile that 'cargo dist' will build with
[profile.dist]
inherits = "release"
lto = "thin"
# Config for 'cargo release'
# https://github.com/crate-ci/cargo-release/blob/master/docs/reference.md
[workspace.metadata.release]
pre-release-commit-message = "chore: release {{crate_name}} v{{version}}"
# Config for 'cargo dist'
[workspace.metadata.dist]
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax)
cargo-dist-version = "0.22.1"
# CI backends to support
ci = "github"
# The installers to generate for each app
installers = ["shell", "powershell", "npm"]
publish-jobs = ["npm"]
# Target platforms to build apps for (Rust target-triple syntax)
targets = [
"aarch64-apple-darwin",
"x86_64-apple-darwin",
"x86_64-unknown-linux-gnu",
"x86_64-unknown-linux-musl",
"x86_64-pc-windows-msvc",
]
# The archive format to use for windows builds (defaults .zip)
windows-archive = ".tar.gz"
# The archive format to use for non-windows builds (defaults .tar.xz)
unix-archive = ".tar.gz"
# Path that installers should place binaries in
install-path = "CARGO_HOME"
# Whether to install an updater program
install-updater = true