mirror of
https://github.com/danbulant/oxc
synced 2026-05-23 06:08:47 +00:00
chore: add rust-toolchain.toml and Cargo.toml
This commit is contained in:
parent
bdf817cb49
commit
d026e33343
5 changed files with 48 additions and 0 deletions
8
CONTRIBUTING.md
Normal file
8
CONTRIBUTING.md
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# Installation
|
||||
|
||||
```bash
|
||||
# https://rustup.rs/
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||||
|
||||
cargo check
|
||||
```
|
||||
24
Cargo.toml
Normal file
24
Cargo.toml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
[workspace]
|
||||
resolver = "2"
|
||||
members = [
|
||||
"crates/*",
|
||||
]
|
||||
|
||||
[workspace.package]
|
||||
authors = ["Boshen <boshenc@gmail.com>"]
|
||||
description = "The JavaScript Oxidation Compiler"
|
||||
edition = "2021"
|
||||
homepage = "https://github.com/Boshen/oxc"
|
||||
keywords = ["JavaScript", "TypeScript", "compiler", "parser"]
|
||||
license = "MIT"
|
||||
repository = "https://github.com/Boshen/oxc"
|
||||
version = "0.0.0"
|
||||
|
||||
[profile.release]
|
||||
lto = "fat"
|
||||
codegen-units = 1
|
||||
strip = true
|
||||
|
||||
# DO NOT SET PANIC TO ABORT
|
||||
# we are using catch_unwind for panic recovery
|
||||
panic = "unwind"
|
||||
10
crates/oxc_parser/Cargo.toml
Normal file
10
crates/oxc_parser/Cargo.toml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[package]
|
||||
name = "oxc_parser"
|
||||
authors.workspace = true
|
||||
description.workspace = true
|
||||
edition.workspace = true
|
||||
homepage.workspace = true
|
||||
keywords.workspace = true
|
||||
license.workspace = true
|
||||
repository.workspace = true
|
||||
version.workspace = true
|
||||
1
crates/oxc_parser/src/lib.rs
Normal file
1
crates/oxc_parser/src/lib.rs
Normal file
|
|
@ -0,0 +1 @@
|
|||
pub struct Parser;
|
||||
5
rust-toolchain.toml
Normal file
5
rust-toolchain.toml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
[toolchain]
|
||||
profile = "default"
|
||||
# Use nightly for better access to the latest Rust features.
|
||||
# This date is aligned to stable release dates.
|
||||
channel = "nightly-2023-01-26"
|
||||
Loading…
Reference in a new issue