diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6504f32c..74abe69d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -88,7 +88,7 @@ jobs: - name: Install cross if: ${{ matrix.use-cross }} - run: cargo install cross --git https://github.com/cross-rs/cross + run: RUSTFLAGS="" cargo install cross --git https://github.com/cross-rs/cross - name: Configure cross if: ${{ matrix.use-cross }} @@ -138,6 +138,7 @@ jobs: - name: Build wasmtime library if: ${{ !matrix.use-cross && contains(matrix.features, 'wasm') }} run: | + mkdir -p target WASMTIME_VERSION=$(cargo metadata --format-version=1 --locked --features wasm | \ jq -r '.packages[] | select(.name == "wasmtime-c-api-impl") | .version') curl -LSs "$WASMTIME_REPO/archive/refs/tags/v${WASMTIME_VERSION}.tar.gz" | tar xzf - -C target @@ -151,6 +152,7 @@ jobs: printf 'CMAKE_PREFIX_PATH=%s\n' "$PWD/artifacts" >> $GITHUB_ENV env: WASMTIME_REPO: https://github.com/bytecodealliance/wasmtime + RUSTFLAGS: "" - name: Build C library (make) if: ${{ runner.os != 'Windows' }} diff --git a/Cargo.lock b/Cargo.lock index f0f8f34d..656c5f77 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -442,9 +442,9 @@ dependencies = [ [[package]] name = "ctor" -version = "0.2.8" +version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edb49164822f3ee45b17acd4a208cfc1251410cf0cad9a833234c9890774dd9f" +checksum = "32a2785755761f3ddc1492979ce1e48d2c00d09311c39e4466429188f3dd6501" dependencies = [ "quote", "syn", diff --git a/Cargo.toml b/Cargo.toml index 5e7921c9..0a2a378b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -105,7 +105,7 @@ clap = { version = "4.5.18", features = [ "unstable-styles", ] } clap_complete = "4.5.29" -ctor = "0.2.8" +ctor = "0.2.9" ctrlc = { version = "3.4.5", features = ["termination"] } dialoguer = { version = "0.11.0", features = ["fuzzy-select"] } dirs = "5.0.1" diff --git a/lib/language/Cargo.toml b/lib/language/Cargo.toml index e3d8a6ff..7de3dca5 100644 --- a/lib/language/Cargo.toml +++ b/lib/language/Cargo.toml @@ -5,10 +5,12 @@ version = "0.1.2" authors.workspace = true edition.workspace = true rust-version.workspace = true +readme = "README.md" homepage.workspace = true repository.workspace = true license.workspace = true keywords.workspace = true +categories = ["api-bindings", "development-tools::ffi", "parsing"] [lints] workspace = true diff --git a/lib/language/README.md b/lib/language/README.md new file mode 100644 index 00000000..ddeabb92 --- /dev/null +++ b/lib/language/README.md @@ -0,0 +1,4 @@ +# Tree-sitter Language + +This crate provides a `LanguageFn` type for grammars to create `Language` instances from a parser, +without having to worry about the `tree-sitter` crate version not matching.