Skip to content

Commit

Permalink
Merge pull request #265 from DerekStride/tree-sitter-crate
Browse files Browse the repository at this point in the history
chore: update crate name to avoid conflicts
  • Loading branch information
matthias-Q authored Jul 26, 2024
2 parents 3f2001f + 7d053e5 commit 4a5fda8
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
types: [published]

jobs:
publish:
npm-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -16,3 +16,14 @@ jobs:
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
cargo-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "tree-sitter-sql"
name = "tree-sitter-sequel"
description = "sql grammar for the tree-sitter parsing library"
version = "0.3.2"
keywords = ["incremental", "parsing", "sql"]
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@ tar -xzf gh-pages.tar.gz
cd tree-sitter-sql-gh-pages
```

### [Cargo](https://crates.io/crates/tree-sitter-sequel)

```bash
cargo add tree-sitter-sequel
```

### [NPM](https://www.npmjs.com/package/@derekstride/tree-sitter-sql)

```bash
npm i @derekstride/tree-sitter-sql
```

### Step 2: Compile the Parser

Tree-sitter parsers need to be compiled as a shared-object / dynamic-library, you can enable this by passing the
Expand Down

0 comments on commit 4a5fda8

Please sign in to comment.