Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ This crate provides safe Rust bindings to the [merve](https://github.com/nodejs/

Add to your `Cargo.toml`:

```toml
[dependencies]
merve = "0.1"
```sh
cargo add merve
```

Parse CommonJS source and iterate over exports:
Expand All @@ -37,14 +36,14 @@ for export in analysis.exports() {
**std** (default): Enables `std::error::Error` impl for `LexerError`. Disable for `no_std`:

```toml
merve = { version = "0.1", default-features = false }
merve = { version = "...", default-features = false }
```

**libcpp**: Build the underlying C++ code with `libc++` instead of `libstdc++`.
Requires `libc++` to be installed:

```toml
merve = { version = "0.1", features = ["libcpp"] }
merve = { version = "...", features = ["libcpp"] }
```

## API
Expand Down
Loading