chore: add rust-toolchain.toml and Cargo.toml

This commit is contained in:
Boshen 2023-02-11 12:55:42 +08:00
parent bdf817cb49
commit d026e33343
5 changed files with 48 additions and 0 deletions

8
CONTRIBUTING.md Normal file
View 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
View 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"

View 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

View file

@ -0,0 +1 @@
pub struct Parser;

5
rust-toolchain.toml Normal file
View 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"