Skip to content

Commit

Permalink
v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
langston-barrett committed Oct 29, 2022
1 parent 0f98f25 commit 1a2fae3
Show file tree
Hide file tree
Showing 19 changed files with 46 additions and 38 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ cargo install treeedb-<LANG> treeedbgen-souffle-<LANG>
This will install binaries to `~/.cargo/bin`. To generate the Datalog file, run
the `treeedbgen-souffle-<LANG>` binary.

Unfortunately, the Java-related binaries [are not yet available on
crates.io][#23].

### Build From Source

To build from source, you'll need the Rust compiler and the [Cargo][cargo] build
Expand Down Expand Up @@ -225,6 +228,7 @@ bash scripts/add-language.sh python Python

[#3]: https://github.com/langston-barrett/treeedb/issues/3
[#9]: https://github.com/langston-barrett/treeedb/pull/9
[#23]: https://github.com/langston-barrett/treeedb/issues/23
[cargo]: https://doc.rust-lang.org/cargo/
[crates-io]: https://crates.io/
[cclyzerpp-fact-generator]: https://galoisinc.github.io/cclyzerpp/architecture.html#the-fact-generator
Expand Down
16 changes: 10 additions & 6 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@

set -e

# TODO(#23): Upload Java crates

# See #22 for discussion on the rate limit.

cargo publish --package treeedb
sleep 10
sleep 60
cargo publish --package treeedbgen
sleep 10
sleep 60
cargo publish --package treeedbgen-souffle
sleep 10
for lang in c csharp java javascript rust souffle swift; do
sleep 60
for lang in c csharp javascript rust souffle swift; do
cargo publish --package treeedb-${lang}
sleep 10
sleep 60
cargo publish --package treeedbgen-souffle-${lang}
sleep 10
sleep 60
done
4 changes: 2 additions & 2 deletions treeedb-c/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "treeedb-c"
version = "0.1.0-rc.5"
version = "0.1.0"
edition = "2021"
description = "Generate Datalog facts from C source code"
keywords = ["datalog", "c", "parsing", "souffle"]
Expand All @@ -12,5 +12,5 @@ repository = "https://github.com/langston-barrett/treeedb"

[dependencies]
anyhow = "1.0"
treeedb = { version = "0.1.0-rc.5", path = "../treeedb", features = ["cli"] }
treeedb = { version = "0.1.0", path = "../treeedb", features = ["cli"] }
tree-sitter-c = { version = "0.20" }
4 changes: 2 additions & 2 deletions treeedb-csharp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "treeedb-csharp"
version = "0.1.0-rc.5"
version = "0.1.0"
edition = "2021"
description = "Generate Datalog facts from C# source code"
keywords = ["datalog", "csharp", "parsing", "souffle"]
Expand All @@ -12,5 +12,5 @@ repository = "https://github.com/langston-barrett/treeedb"

[dependencies]
anyhow = "1.0"
treeedb = { version = "0.1.0-rc.5", path = "../treeedb", features = ["cli"] }
treeedb = { version = "0.1.0", path = "../treeedb", features = ["cli"] }
tree-sitter-c-sharp = { version = "0.20", git = "https://github.com/tree-sitter/tree-sitter-c-sharp" }
4 changes: 2 additions & 2 deletions treeedb-java/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "treeedb-java"
version = "0.1.0-rc.5"
version = "0.1.0"
edition = "2021"
description = "Generate Datalog facts from Java source code"
keywords = ["datalog", "java", "parsing", "souffle"]
Expand All @@ -12,5 +12,5 @@ repository = "https://github.com/langston-barrett/treeedb"

[dependencies]
anyhow = "1.0"
treeedb = { version = "0.1.0-rc.5", path = "../treeedb", features = ["cli"] }
treeedb = { version = "0.1.0", path = "../treeedb", features = ["cli"] }
tree-sitter-java = { version = "0.20", git = 'https://github.com/tree-sitter/tree-sitter-java' }
4 changes: 2 additions & 2 deletions treeedb-javascript/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "treeedb-javascript"
version = "0.1.0-rc.5"
version = "0.1.0"
edition = "2021"
description = "Generate Datalog facts from JavaScript source code"
keywords = ["datalog", "javascript", "parsing", "souffle"]
Expand All @@ -12,5 +12,5 @@ repository = "https://github.com/langston-barrett/treeedb"

[dependencies]
anyhow = "1.0"
treeedb = { version = "0.1.0-rc.5", path = "../treeedb", features = ["cli"] }
treeedb = { version = "0.1.0", path = "../treeedb", features = ["cli"] }
tree-sitter-javascript = { version = "0.20" }
4 changes: 2 additions & 2 deletions treeedb-rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "treeedb-rust"
version = "0.1.0-rc.5"
version = "0.1.0"
edition = "2021"
description = "Generate Datalog facts from Rust source code"
keywords = ["datalog", "rust", "parsing", "souffle"]
Expand All @@ -12,5 +12,5 @@ repository = "https://github.com/langston-barrett/treeedb"

[dependencies]
anyhow = "1.0"
treeedb = { version = "0.1.0-rc.5", path = "../treeedb", features = ["cli"] }
treeedb = { version = "0.1.0", path = "../treeedb", features = ["cli"] }
tree-sitter-rust = { version = "0.20" }
4 changes: 2 additions & 2 deletions treeedb-souffle/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "treeedb-souffle"
version = "0.1.0-rc.5"
version = "0.1.0"
edition = "2021"
description = "Generate Datalog facts from Soufflé source code"
keywords = ["datalog", "parsing", "souffle"]
Expand All @@ -12,5 +12,5 @@ repository = "https://github.com/langston-barrett/treeedb"

[dependencies]
anyhow = "1.0"
treeedb = { version = "0.1.0-rc.5", path = "../treeedb", features = ["cli"] }
treeedb = { version = "0.1.0", path = "../treeedb", features = ["cli"] }
tree-sitter-souffle = { version = "0.4.0" }
4 changes: 2 additions & 2 deletions treeedb-swift/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "treeedb-swift"
version = "0.1.0-rc.5"
version = "0.1.0"
edition = "2021"
description = "Generate Datalog facts from Swift source code"
keywords = ["datalog", "swift", "parsing", "souffle"]
Expand All @@ -12,5 +12,5 @@ repository = "https://github.com/langston-barrett/treeedb"

[dependencies]
anyhow = "1.0"
treeedb = { version = "0.1.0-rc.5", path = "../treeedb", features = ["cli"] }
treeedb = { version = "0.1.0", path = "../treeedb", features = ["cli"] }
tree-sitter-swift = { version = "0.3.4" }
2 changes: 1 addition & 1 deletion treeedb/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "treeedb"
version = "0.1.0-rc.5"
version = "0.1.0"
edition = "2021"
description = "Generate Datalog facts from tree-sitter parse trees"
keywords = ["datalog", "parsing", "souffle"]
Expand Down
4 changes: 2 additions & 2 deletions treeedbgen-souffle-c/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "treeedbgen-souffle-c"
version = "0.1.0-rc.5"
version = "0.1.0"
edition = "2021"
description = "Generate Soufflé types and relations from the C tree-sitter grammar"
keywords = ["datalog", "c", "parsing", "souffle"]
Expand All @@ -12,7 +12,7 @@ repository = "https://github.com/langston-barrett/treeedb"

[dependencies]
anyhow = "1"
treeedbgen-souffle = { version = "0.1.0-rc.5", path = "../treeedbgen-souffle", features = ["cli"] }
treeedbgen-souffle = { version = "0.1.0", path = "../treeedbgen-souffle", features = ["cli"] }
tree-sitter-c = { version = "0.20" }

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions treeedbgen-souffle-csharp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "treeedbgen-souffle-csharp"
version = "0.1.0-rc.5"
version = "0.1.0"
edition = "2021"
description = "Generate Soufflé types and relations from the C# tree-sitter grammar"
keywords = ["datalog", "csharp", "parsing", "souffle"]
Expand All @@ -12,7 +12,7 @@ repository = "https://github.com/langston-barrett/treeedb"

[dependencies]
anyhow = "1"
treeedbgen-souffle = { version = "0.1.0-rc.5", path = "../treeedbgen-souffle", features = ["cli"] }
treeedbgen-souffle = { version = "0.1.0", path = "../treeedbgen-souffle", features = ["cli"] }
tree-sitter-c-sharp = { version = "0.20", git = "https://github.com/tree-sitter/tree-sitter-c-sharp" }

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions treeedbgen-souffle-java/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "treeedbgen-souffle-java"
version = "0.1.0-rc.5"
version = "0.1.0"
edition = "2021"
description = "Generate Soufflé types and relations from the Java tree-sitter grammar"
keywords = ["datalog", "java", "parsing", "souffle"]
Expand All @@ -12,7 +12,7 @@ repository = "https://github.com/langston-barrett/treeedb"

[dependencies]
anyhow = "1"
treeedbgen-souffle = { version = "0.1.0-rc.5", path = "../treeedbgen-souffle", features = ["cli"] }
treeedbgen-souffle = { version = "0.1.0", path = "../treeedbgen-souffle", features = ["cli"] }
tree-sitter-java = { version = "0.20", git = 'https://github.com/tree-sitter/tree-sitter-java' }

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions treeedbgen-souffle-javascript/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "treeedbgen-souffle-javascript"
version = "0.1.0-rc.5"
version = "0.1.0"
edition = "2021"
description = "Generate Soufflé types and relations from the JavaScript tree-sitter grammar"
keywords = ["datalog", "javascript", "parsing", "souffle"]
Expand All @@ -12,7 +12,7 @@ repository = "https://github.com/langston-barrett/treeedb"

[dependencies]
anyhow = "1"
treeedbgen-souffle = { version = "0.1.0-rc.5", path = "../treeedbgen-souffle", features = ["cli"] }
treeedbgen-souffle = { version = "0.1.0", path = "../treeedbgen-souffle", features = ["cli"] }
tree-sitter-javascript = { version = "0.20" }

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions treeedbgen-souffle-rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "treeedbgen-souffle-rust"
version = "0.1.0-rc.5"
version = "0.1.0"
edition = "2021"
description = "Generate Soufflé types and relations from the Rust tree-sitter grammar"
keywords = ["datalog", "rust", "parsing", "souffle"]
Expand All @@ -12,7 +12,7 @@ repository = "https://github.com/langston-barrett/treeedb"

[dependencies]
anyhow = "1"
treeedbgen-souffle = { version = "0.1.0-rc.5", path = "../treeedbgen-souffle", features = ["cli"] }
treeedbgen-souffle = { version = "0.1.0", path = "../treeedbgen-souffle", features = ["cli"] }
tree-sitter-rust = { version = "0.20" }

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions treeedbgen-souffle-souffle/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "treeedbgen-souffle-souffle"
version = "0.1.0-rc.5"
version = "0.1.0"
edition = "2021"
description = "Generate Soufflé types and relations from the Soufflé tree-sitter grammar"
keywords = ["datalog", "java", "parsing", "souffle"]
Expand All @@ -12,7 +12,7 @@ repository = "https://github.com/langston-barrett/treeedb"

[dependencies]
anyhow = "1"
treeedbgen-souffle = { version = "0.1.0-rc.5", path = "../treeedbgen-souffle", features = ["cli"] }
treeedbgen-souffle = { version = "0.1.0", path = "../treeedbgen-souffle", features = ["cli"] }
tree-sitter-souffle = { version = "0.4.0" }

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions treeedbgen-souffle-swift/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "treeedbgen-souffle-swift"
version = "0.1.0-rc.5"
version = "0.1.0"
edition = "2021"
description = "Generate Soufflé types and relations from the Swift tree-sitter grammar"
keywords = ["datalog", "swift", "parsing", "souffle"]
Expand All @@ -12,7 +12,7 @@ repository = "https://github.com/langston-barrett/treeedb"

[dependencies]
anyhow = "1"
treeedbgen-souffle = { version = "0.1.0-rc.5", path = "../treeedbgen-souffle", features = ["cli"] }
treeedbgen-souffle = { version = "0.1.0", path = "../treeedbgen-souffle", features = ["cli"] }
tree-sitter-swift = { version = "0.3.4" }

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions treeedbgen-souffle/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "treeedbgen-souffle"
version = "0.1.0-rc.5"
version = "0.1.0"
edition = "2021"
description = "Generate Soufflé types and relations from tree-sitter grammars"
keywords = ["datalog", "parsing", "souffle"]
Expand All @@ -15,7 +15,7 @@ anyhow = { version = "1", optional = true }
clap = { version = "4", features = ["derive"], optional = true }
heck = "0.4"
thiserror = "1"
treeedbgen = { path = "../treeedbgen", version = "0.1.0-rc.5" }
treeedbgen = { path = "../treeedbgen", version = "0.1.0" }
serde_json = "1"

[features]
Expand Down
2 changes: 1 addition & 1 deletion treeedbgen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "treeedbgen"
version = "0.1.0-rc.5"
version = "0.1.0"
edition = "2021"
description = "Parse node-types.json from a tree-sitter grammar"
keywords = ["parsing", "tree-sitter"]
Expand Down

0 comments on commit 1a2fae3

Please sign in to comment.