diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 1e4260b..6f19756 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -77,7 +77,7 @@ checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79" [[package]] name = "merve" -version = "1.0.1" +version = "1.1.2" dependencies = [ "cc", "link_args", diff --git a/rust/README.md b/rust/README.md index 5c34152..34c0044 100644 --- a/rust/README.md +++ b/rust/README.md @@ -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: @@ -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