From 1a2fae3509c76cd5a8e1004f808ea800d49d1a19 Mon Sep 17 00:00:00 2001 From: Langston Barrett Date: Sat, 29 Oct 2022 17:49:27 -0400 Subject: [PATCH] v0.1.0 --- README.md | 4 ++++ scripts/publish.sh | 16 ++++++++++------ treeedb-c/Cargo.toml | 4 ++-- treeedb-csharp/Cargo.toml | 4 ++-- treeedb-java/Cargo.toml | 4 ++-- treeedb-javascript/Cargo.toml | 4 ++-- treeedb-rust/Cargo.toml | 4 ++-- treeedb-souffle/Cargo.toml | 4 ++-- treeedb-swift/Cargo.toml | 4 ++-- treeedb/Cargo.toml | 2 +- treeedbgen-souffle-c/Cargo.toml | 4 ++-- treeedbgen-souffle-csharp/Cargo.toml | 4 ++-- treeedbgen-souffle-java/Cargo.toml | 4 ++-- treeedbgen-souffle-javascript/Cargo.toml | 4 ++-- treeedbgen-souffle-rust/Cargo.toml | 4 ++-- treeedbgen-souffle-souffle/Cargo.toml | 4 ++-- treeedbgen-souffle-swift/Cargo.toml | 4 ++-- treeedbgen-souffle/Cargo.toml | 4 ++-- treeedbgen/Cargo.toml | 2 +- 19 files changed, 46 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index 6b9ff1b..180b21f 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,9 @@ cargo install treeedb- treeedbgen-souffle- This will install binaries to `~/.cargo/bin`. To generate the Datalog file, run the `treeedbgen-souffle-` 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 @@ -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 diff --git a/scripts/publish.sh b/scripts/publish.sh index c74955e..1267515 100644 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -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 diff --git a/treeedb-c/Cargo.toml b/treeedb-c/Cargo.toml index ea5b986..56ef908 100644 --- a/treeedb-c/Cargo.toml +++ b/treeedb-c/Cargo.toml @@ -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"] @@ -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" } diff --git a/treeedb-csharp/Cargo.toml b/treeedb-csharp/Cargo.toml index 8c7af5f..a98bcb5 100644 --- a/treeedb-csharp/Cargo.toml +++ b/treeedb-csharp/Cargo.toml @@ -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"] @@ -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" } diff --git a/treeedb-java/Cargo.toml b/treeedb-java/Cargo.toml index fc74986..0482f4b 100644 --- a/treeedb-java/Cargo.toml +++ b/treeedb-java/Cargo.toml @@ -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"] @@ -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' } diff --git a/treeedb-javascript/Cargo.toml b/treeedb-javascript/Cargo.toml index 0510930..1474ec4 100644 --- a/treeedb-javascript/Cargo.toml +++ b/treeedb-javascript/Cargo.toml @@ -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"] @@ -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" } diff --git a/treeedb-rust/Cargo.toml b/treeedb-rust/Cargo.toml index ccd0182..6deaaf9 100644 --- a/treeedb-rust/Cargo.toml +++ b/treeedb-rust/Cargo.toml @@ -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"] @@ -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" } diff --git a/treeedb-souffle/Cargo.toml b/treeedb-souffle/Cargo.toml index a2e7307..6ac5216 100644 --- a/treeedb-souffle/Cargo.toml +++ b/treeedb-souffle/Cargo.toml @@ -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"] @@ -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" } diff --git a/treeedb-swift/Cargo.toml b/treeedb-swift/Cargo.toml index 65b9d46..adf0337 100644 --- a/treeedb-swift/Cargo.toml +++ b/treeedb-swift/Cargo.toml @@ -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"] @@ -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" } diff --git a/treeedb/Cargo.toml b/treeedb/Cargo.toml index 8e10cd9..e05b0a2 100644 --- a/treeedb/Cargo.toml +++ b/treeedb/Cargo.toml @@ -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"] diff --git a/treeedbgen-souffle-c/Cargo.toml b/treeedbgen-souffle-c/Cargo.toml index e680b0b..7c08aa4 100644 --- a/treeedbgen-souffle-c/Cargo.toml +++ b/treeedbgen-souffle-c/Cargo.toml @@ -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"] @@ -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] diff --git a/treeedbgen-souffle-csharp/Cargo.toml b/treeedbgen-souffle-csharp/Cargo.toml index ced0619..1b1c662 100644 --- a/treeedbgen-souffle-csharp/Cargo.toml +++ b/treeedbgen-souffle-csharp/Cargo.toml @@ -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"] @@ -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] diff --git a/treeedbgen-souffle-java/Cargo.toml b/treeedbgen-souffle-java/Cargo.toml index 3e07f2d..e2ba16f 100644 --- a/treeedbgen-souffle-java/Cargo.toml +++ b/treeedbgen-souffle-java/Cargo.toml @@ -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"] @@ -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] diff --git a/treeedbgen-souffle-javascript/Cargo.toml b/treeedbgen-souffle-javascript/Cargo.toml index ec223ed..0cfaf81 100644 --- a/treeedbgen-souffle-javascript/Cargo.toml +++ b/treeedbgen-souffle-javascript/Cargo.toml @@ -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"] @@ -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] diff --git a/treeedbgen-souffle-rust/Cargo.toml b/treeedbgen-souffle-rust/Cargo.toml index 7d64972..d795e2c 100644 --- a/treeedbgen-souffle-rust/Cargo.toml +++ b/treeedbgen-souffle-rust/Cargo.toml @@ -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"] @@ -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] diff --git a/treeedbgen-souffle-souffle/Cargo.toml b/treeedbgen-souffle-souffle/Cargo.toml index 6326d0a..2244aa5 100644 --- a/treeedbgen-souffle-souffle/Cargo.toml +++ b/treeedbgen-souffle-souffle/Cargo.toml @@ -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"] @@ -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] diff --git a/treeedbgen-souffle-swift/Cargo.toml b/treeedbgen-souffle-swift/Cargo.toml index aa3ab09..31e1f7f 100644 --- a/treeedbgen-souffle-swift/Cargo.toml +++ b/treeedbgen-souffle-swift/Cargo.toml @@ -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"] @@ -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] diff --git a/treeedbgen-souffle/Cargo.toml b/treeedbgen-souffle/Cargo.toml index b96233e..4f8c9ef 100644 --- a/treeedbgen-souffle/Cargo.toml +++ b/treeedbgen-souffle/Cargo.toml @@ -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"] @@ -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] diff --git a/treeedbgen/Cargo.toml b/treeedbgen/Cargo.toml index a271782..0aeb2bb 100644 --- a/treeedbgen/Cargo.toml +++ b/treeedbgen/Cargo.toml @@ -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"]