diff --git a/Cargo.lock b/Cargo.lock index 2d757a1b..8b329253 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1360,7 +1360,7 @@ dependencies = [ [[package]] name = "libtangram" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "libc", @@ -2779,7 +2779,7 @@ dependencies = [ [[package]] name = "tangram" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "chrono", @@ -3990,7 +3990,7 @@ dependencies = [ [[package]] name = "tangram_cli" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "backtrace", @@ -4028,7 +4028,7 @@ version = "0.0.0" [[package]] name = "tangram_core" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bitvec", @@ -4098,7 +4098,7 @@ dependencies = [ [[package]] name = "tangram_features" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "fnv", @@ -4115,7 +4115,7 @@ dependencies = [ [[package]] name = "tangram_finite" -version = "0.4.0" +version = "0.5.0" dependencies = [ "num", "serde", @@ -4123,7 +4123,7 @@ dependencies = [ [[package]] name = "tangram_id" -version = "0.4.0" +version = "0.5.0" dependencies = [ "rand", "serde", @@ -4131,7 +4131,7 @@ dependencies = [ [[package]] name = "tangram_kill_chip" -version = "0.4.0" +version = "0.5.0" [[package]] name = "tangram_license" @@ -4154,7 +4154,7 @@ dependencies = [ [[package]] name = "tangram_linear" -version = "0.4.0" +version = "0.5.0" dependencies = [ "buffalo", "clap 3.0.0-beta.2", @@ -4174,7 +4174,7 @@ dependencies = [ [[package]] name = "tangram_macro" -version = "0.4.0" +version = "0.5.0" dependencies = [ "proc-macro2", "quote", @@ -4183,7 +4183,7 @@ dependencies = [ [[package]] name = "tangram_metrics" -version = "0.4.0" +version = "0.5.0" dependencies = [ "insta", "itertools", @@ -4194,7 +4194,7 @@ dependencies = [ [[package]] name = "tangram_model" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "buffalo", @@ -4227,7 +4227,7 @@ dependencies = [ [[package]] name = "tangram_progress_counter" -version = "0.4.0" +version = "0.5.0" dependencies = [ "rayon", ] @@ -4250,7 +4250,7 @@ dependencies = [ [[package]] name = "tangram_table" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "csv", @@ -4265,7 +4265,7 @@ dependencies = [ [[package]] name = "tangram_text" -version = "0.4.0" +version = "0.5.0" dependencies = [ "fnv", "indexmap", @@ -4274,7 +4274,7 @@ dependencies = [ [[package]] name = "tangram_tree" -version = "0.4.0" +version = "0.5.0" dependencies = [ "bitvec", "buffalo", @@ -4716,7 +4716,7 @@ dependencies = [ [[package]] name = "tangram_zip" -version = "0.4.0" +version = "0.5.0" [[package]] name = "tap" diff --git a/crates/build/lib.rs b/crates/build/lib.rs index 32771335..a12a81c5 100644 --- a/crates/build/lib.rs +++ b/crates/build/lib.rs @@ -6,14 +6,13 @@ pub enum Arch { Wasm32, } -pub const ARCHS: [Arch; 2] = [Arch::X8664, Arch::AArch64]; - impl std::str::FromStr for Arch { type Err = Error; fn from_str(s: &str) -> Result { match s { "x86_64" => Ok(Arch::X8664), "aarch64" => Ok(Arch::AArch64), + "wasm32" => Ok(Arch::Wasm32), _ => Err(anyhow!("invalid arch")), } } @@ -42,18 +41,6 @@ pub enum Target { Wasm32UnknownUnknown, } -pub const TARGETS: [Target; 9] = [ - Target::X8664UnknownLinuxGnu, - Target::AArch64UnknownLinuxGnu, - Target::X8664UnknownLinuxMusl, - Target::AArch64UnknownLinuxMusl, - Target::X8664AppleDarwin, - Target::AArch64AppleDarwin, - Target::X8664PcWindowsMsvc, - Target::X8664PcWindowsGnu, - Target::Wasm32UnknownUnknown, -]; - impl std::str::FromStr for Target { type Err = Error; fn from_str(s: &str) -> Result { diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index 2521732e..8bf22375 100644 --- a/crates/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -4,7 +4,7 @@ edition = "2018" license = "MIT" name = "tangram_cli" publish = false -version = "0.4.0" +version = "0.5.0" [[bin]] name = "tangram" diff --git a/crates/core/Cargo.toml b/crates/core/Cargo.toml index bdf6af53..15918dbe 100644 --- a/crates/core/Cargo.toml +++ b/crates/core/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT" name = "tangram_core" publish = true repository = "https://github.com/tangramxyz/tangram" -version = "0.4.0" +version = "0.5.0" [lib] path = "lib.rs" @@ -28,18 +28,18 @@ rand = "0.8" rand_xoshiro = "0.6" serde = { version = "1", features = ["derive"] } serde_json = "1" -tangram_features = { version = "0.4", path = "../features" } -tangram_finite = { version = "0.4", path = "../finite" } -tangram_id = { version = "0.4", path = "../id" } -tangram_kill_chip = { version = "0.4", path = "../kill_chip" } -tangram_linear = { version = "0.4", path = "../linear" } -tangram_metrics = { version = "0.4", path = "../metrics" } -tangram_model = { version = "0.4", path = "../model" } -tangram_progress_counter = { version = "0.4", path = "../progress_counter" } -tangram_table = { version = "0.4", path = "../table" } -tangram_text = { version = "0.4", path = "../text" } -tangram_tree = { version = "0.4", path = "../tree" } -tangram_zip = { version = "0.4", path = "../zip" } +tangram_features = { version = "=0.5.0", path = "../features" } +tangram_finite = { version = "=0.5.0", path = "../finite" } +tangram_id = { version = "=0.5.0", path = "../id" } +tangram_kill_chip = { version = "=0.5.0", path = "../kill_chip" } +tangram_linear = { version = "=0.5.0", path = "../linear" } +tangram_metrics = { version = "=0.5.0", path = "../metrics" } +tangram_model = { version = "=0.5.0", path = "../model" } +tangram_progress_counter = { version = "=0.5.0", path = "../progress_counter" } +tangram_table = { version = "=0.5.0", path = "../table" } +tangram_text = { version = "=0.5.0", path = "../text" } +tangram_tree = { version = "=0.5.0", path = "../tree" } +tangram_zip = { version = "=0.5.0", path = "../zip" } [target.wasm32-unknown-unknown.dependencies] getrandom = { version = "0.2", features = ["js"] } diff --git a/crates/features/Cargo.toml b/crates/features/Cargo.toml index 87aab4ed..286d24cf 100644 --- a/crates/features/Cargo.toml +++ b/crates/features/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT" name = "tangram_features" publish = true repository = "https://github.com/tangramxyz/tangram" -version = "0.4.0" +version = "0.5.0" [lib] path = "lib.rs" @@ -21,7 +21,7 @@ itertools = "0.10" ndarray = { version = "0.15", features = ["rayon"] } num = "0.4" serde = { version = "1", features = ["derive"] } -tangram_metrics = { version = "0.4", path = "../metrics" } -tangram_table = { version = "0.4", path = "../table" } -tangram_text = { version = "0.4", path = "../text" } -tangram_zip = { version = "0.4", path = "../zip" } +tangram_metrics = { version = "=0.5.0", path = "../metrics" } +tangram_table = { version = "=0.5.0", path = "../table" } +tangram_text = { version = "=0.5.0", path = "../text" } +tangram_zip = { version = "=0.5.0", path = "../zip" } diff --git a/crates/finite/Cargo.toml b/crates/finite/Cargo.toml index 9e0e3ba7..a122df80 100644 --- a/crates/finite/Cargo.toml +++ b/crates/finite/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT" name = "tangram_finite" publish = true repository = "https://github.com/tangramxyz/tangram" -version = "0.4.0" +version = "0.5.0" [lib] path = "lib.rs" diff --git a/crates/id/Cargo.toml b/crates/id/Cargo.toml index b649a288..411b337e 100644 --- a/crates/id/Cargo.toml +++ b/crates/id/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT" name = "tangram_id" publish = true repository = "https://github.com/tangramxyz/tangram" -version = "0.4.0" +version = "0.5.0" [lib] path = "lib.rs" diff --git a/crates/kill_chip/Cargo.toml b/crates/kill_chip/Cargo.toml index 9034e302..efc2becc 100644 --- a/crates/kill_chip/Cargo.toml +++ b/crates/kill_chip/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT" name = "tangram_kill_chip" publish = true repository = "https://github.com/tangramxyz/tangram" -version = "0.4.0" +version = "0.5.0" [lib] path = "lib.rs" diff --git a/crates/linear/Cargo.toml b/crates/linear/Cargo.toml index 997d5966..69967715 100644 --- a/crates/linear/Cargo.toml +++ b/crates/linear/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT" name = "tangram_linear" publish = true repository = "https://github.com/tangramxyz/tangram" -version = "0.4.0" +version = "0.5.0" [lib] path = "lib.rs" @@ -54,9 +54,9 @@ num = "0.4" rayon = "1.5" serde = { version = "1", features = ["derive"] } serde_json = "1" -tangram_features = { version = "0.4", path = "../features" } -tangram_kill_chip = { version = "0.4", path = "../kill_chip" } -tangram_metrics = { version = "0.4", path = "../metrics" } -tangram_progress_counter = { version = "0.4", path = "../progress_counter" } -tangram_table = { version = "0.4", path = "../table" } -tangram_zip = { version = "0.4", path = "../zip" } +tangram_features = { version = "=0.5.0", path = "../features" } +tangram_kill_chip = { version = "=0.5.0", path = "../kill_chip" } +tangram_metrics = { version = "=0.5.0", path = "../metrics" } +tangram_progress_counter = { version = "=0.5.0", path = "../progress_counter" } +tangram_table = { version = "=0.5.0", path = "../table" } +tangram_zip = { version = "=0.5.0", path = "../zip" } diff --git a/crates/metrics/Cargo.toml b/crates/metrics/Cargo.toml index 2ce25657..ffb7c4a9 100644 --- a/crates/metrics/Cargo.toml +++ b/crates/metrics/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT" name = "tangram_metrics" publish = true repository = "https://github.com/tangramxyz/tangram" -version = "0.4.0" +version = "0.5.0" [lib] path = "lib.rs" @@ -20,4 +20,4 @@ insta = "1" itertools = "0.10" ndarray = { version = "0.15", features = ["rayon"] } num = "0.4" -tangram_zip = { version = "0.4", path = "../zip" } +tangram_zip = { version = "=0.5.0", path = "../zip" } diff --git a/crates/model/Cargo.toml b/crates/model/Cargo.toml index 0aa9c0b5..cee29fcc 100644 --- a/crates/model/Cargo.toml +++ b/crates/model/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT" name = "tangram_model" publish = true repository = "https://github.com/tangramxyz/tangram" -version = "0.4.0" +version = "0.5.0" [lib] path = "lib.rs" @@ -18,6 +18,6 @@ anyhow = { version = "1", features = ["backtrace"] } buffalo = "0.1" fnv = "1" num = "0.4" -tangram_linear = { version = "0.4", path = "../linear" } -tangram_text = { version = "0.4", path = "../text" } -tangram_tree = { version = "0.4", path = "../tree" } +tangram_linear = { version = "=0.5.0", path = "../linear" } +tangram_text = { version = "=0.5.0", path = "../text" } +tangram_tree = { version = "=0.5.0", path = "../tree" } diff --git a/crates/progress_counter/Cargo.toml b/crates/progress_counter/Cargo.toml index 6dee8cef..ba44ad1e 100644 --- a/crates/progress_counter/Cargo.toml +++ b/crates/progress_counter/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT" name = "tangram_progress_counter" publish = true repository = "https://github.com/tangramxyz/tangram" -version = "0.4.0" +version = "0.5.0" [lib] path = "lib.rs" diff --git a/crates/table/Cargo.toml b/crates/table/Cargo.toml index b185eb3f..0d8ad7e4 100644 --- a/crates/table/Cargo.toml +++ b/crates/table/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT" name = "tangram_table" publish = true repository = "https://github.com/tangramxyz/tangram" -version = "0.4.0" +version = "0.5.0" [lib] path = "lib.rs" @@ -23,5 +23,5 @@ fast-float = "0.2" fnv = "1" ndarray = { version = "0.15", features = ["rayon"] } num = "0.4" -tangram_progress_counter = { version = "0.4", path = "../progress_counter" } -tangram_zip = { version = "0.4", path = "../zip" } +tangram_progress_counter = { version = "=0.5.0", path = "../progress_counter" } +tangram_zip = { version = "=0.5.0", path = "../zip" } diff --git a/crates/text/Cargo.toml b/crates/text/Cargo.toml index f258ec73..3243b670 100644 --- a/crates/text/Cargo.toml +++ b/crates/text/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT" name = "tangram_text" publish = true repository = "https://github.com/tangramxyz/tangram" -version = "0.4.0" +version = "0.5.0" [lib] path = "lib.rs" diff --git a/crates/tree/Cargo.toml b/crates/tree/Cargo.toml index 0b1bf6e3..1a918bfe 100644 --- a/crates/tree/Cargo.toml +++ b/crates/tree/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT" name = "tangram_tree" publish = true repository = "https://github.com/tangramxyz/tangram" -version = "0.4.0" +version = "0.5.0" [lib] @@ -61,9 +61,9 @@ num = "0.4" rayon = "1.5" serde = { version = "1", features = ["derive"] } serde_json = "1" -tangram_finite = { version = "0.4", path = "../finite" } -tangram_kill_chip = { version = "0.4", path = "../kill_chip" } -tangram_metrics = { version = "0.4", path = "../metrics" } -tangram_progress_counter = { version = "0.4", path = "../progress_counter" } -tangram_table = { version = "0.4", path = "../table" } -tangram_zip = { version = "0.4", path = "../zip" } +tangram_finite = { version = "=0.5.0", path = "../finite" } +tangram_kill_chip = { version = "=0.5.0", path = "../kill_chip" } +tangram_metrics = { version = "=0.5.0", path = "../metrics" } +tangram_progress_counter = { version = "=0.5.0", path = "../progress_counter" } +tangram_table = { version = "=0.5.0", path = "../table" } +tangram_zip = { version = "=0.5.0", path = "../zip" } diff --git a/crates/zip/Cargo.toml b/crates/zip/Cargo.toml index 36a68e9b..3c9e46c9 100644 --- a/crates/zip/Cargo.toml +++ b/crates/zip/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT" name = "tangram_zip" publish = true repository = "https://github.com/tangramxyz/tangram" -version = "0.4.0" +version = "0.5.0" [lib] path = "lib.rs" diff --git a/flake.nix b/flake.nix index d1208dd2..adad0e98 100644 --- a/flake.nix +++ b/flake.nix @@ -29,7 +29,7 @@ cargo = rust; }).buildRustPackage { pname = "tangram"; - version = "0.4.0"; + version = "0.5.0"; src = ./.; doCheck = false; nativeBuildInputs = with pkgs; [ diff --git a/languages/c/Cargo.toml b/languages/c/Cargo.toml index 8ea15340..30ca6067 100644 --- a/languages/c/Cargo.toml +++ b/languages/c/Cargo.toml @@ -3,7 +3,7 @@ edition = "2018" license = "MIT" name = "libtangram" publish = false -version = "0.4.0" +version = "0.5.0" [lib] crate-type = ["cdylib", "staticlib"] diff --git a/languages/elixir/examples/advanced/mix.exs b/languages/elixir/examples/advanced/mix.exs index 3eeb9b00..2902760d 100644 --- a/languages/elixir/examples/advanced/mix.exs +++ b/languages/elixir/examples/advanced/mix.exs @@ -8,7 +8,7 @@ defmodule Example.MixProject do elixir: "~> 1.12", start_permanent: Mix.env() == :prod, deps: [ - {:tangram, "~> 0.4.0"} + {:tangram, "~> 0.5.0"} ] ] end diff --git a/languages/elixir/examples/basic/mix.exs b/languages/elixir/examples/basic/mix.exs index 3eeb9b00..2902760d 100644 --- a/languages/elixir/examples/basic/mix.exs +++ b/languages/elixir/examples/basic/mix.exs @@ -8,7 +8,7 @@ defmodule Example.MixProject do elixir: "~> 1.12", start_permanent: Mix.env() == :prod, deps: [ - {:tangram, "~> 0.4.0"} + {:tangram, "~> 0.5.0"} ] ] end diff --git a/languages/elixir/mix.exs b/languages/elixir/mix.exs index 08675cf3..4cdd9000 100644 --- a/languages/elixir/mix.exs +++ b/languages/elixir/mix.exs @@ -27,7 +27,7 @@ defmodule Tangram.MixProject do ], source_url: "https://github.com/tangramxyz/tangram/tree/master/languages/elixir", start_permanent: Mix.env() == :prod, - version: "0.4.0" + version: "0.5.0" ] end end diff --git a/languages/go/examples/advanced/go.mod b/languages/go/examples/advanced/go.mod index 1ffd50b6..80b2978f 100644 --- a/languages/go/examples/advanced/go.mod +++ b/languages/go/examples/advanced/go.mod @@ -2,4 +2,4 @@ module github.com/tangramxyz/tangram-go/examples/advanced go 1.16 -require github.com/tangramxyz/tangram-go v0.4.0 +require github.com/tangramxyz/tangram-go v0.5.0 diff --git a/languages/go/examples/basic/go.mod b/languages/go/examples/basic/go.mod index 65f7ff16..365138d0 100644 --- a/languages/go/examples/basic/go.mod +++ b/languages/go/examples/basic/go.mod @@ -2,4 +2,4 @@ module github.com/tangramxyz/tangram-go/examples/basic go 1.16 -require github.com/tangramxyz/tangram-go v0.4.0 +require github.com/tangramxyz/tangram-go v0.5.0 diff --git a/languages/python/setup.py b/languages/python/setup.py index e60e048f..2472aeb1 100644 --- a/languages/python/setup.py +++ b/languages/python/setup.py @@ -18,6 +18,6 @@ packages=["tangram"], rust_extensions=[RustExtension("tangram.__init__", binding=Binding.PyO3, py_limited_api=True)], url="https://www.tangram.xyz", - version="0.4.0", + version="0.5.0", zip_safe=False, ) diff --git a/languages/ruby/tangram.gemspec b/languages/ruby/tangram.gemspec index 14e79c46..5d435870 100644 --- a/languages/ruby/tangram.gemspec +++ b/languages/ruby/tangram.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = "tangram" - s.version = "0.4.0" + s.version = "0.5.0" s.summary = "Tangram for Ruby" s.description = "Make predictions with a Tangram model from your Ruby app. Learn more at https://www.tangram.xyz/." s.authors = ["Tangram"] diff --git a/languages/rust/Cargo.toml b/languages/rust/Cargo.toml index fef6bcda..53e74871 100644 --- a/languages/rust/Cargo.toml +++ b/languages/rust/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT" name = "tangram" publish = true repository = "https://github.com/tangramxyz/tangram" -version = "0.4.0" +version = "0.5.0" [lib] path = "lib.rs" @@ -27,8 +27,8 @@ memmap = "0.7" reqwest = { version = "0.11", default-features = false, features = ["blocking", "json", "rustls-tls"] } serde = { version = "1", features = ["derive"] } serde_json = "1" -tangram_core = { version = "0.4", path = "../../crates/core" } -tangram_macro = { version = "0.4", path = "macro" } -tangram_model = { version = "0.4", path = "../../crates/model" } +tangram_core = { version = "=0.5.0", path = "../../crates/core" } +tangram_macro = { version = "=0.5.0", path = "macro" } +tangram_model = { version = "=0.5.0", path = "../../crates/model" } tokio = { version = "1" ,features = ["full"], optional = true } url = { version = "2", features = ["serde"] } diff --git a/languages/rust/examples/advanced/Cargo.toml b/languages/rust/examples/advanced/Cargo.toml index 71b237b7..dec3167f 100644 --- a/languages/rust/examples/advanced/Cargo.toml +++ b/languages/rust/examples/advanced/Cargo.toml @@ -11,4 +11,4 @@ path = "main.rs" [dependencies] anyhow = { version = "1", features = ["backtrace"] } -tangram = { version = "0.4", path = "../../" } +tangram = { version = "=0.5.0", path = "../../" } diff --git a/languages/rust/examples/basic/Cargo.toml b/languages/rust/examples/basic/Cargo.toml index 4cf19152..3b6322fb 100644 --- a/languages/rust/examples/basic/Cargo.toml +++ b/languages/rust/examples/basic/Cargo.toml @@ -10,4 +10,4 @@ name = "tangram_example_basic" path = "main.rs" [dependencies] -tangram = { version = "0.4", path = "../../" } +tangram = { version = "=0.5.0", path = "../../" } diff --git a/languages/rust/macro/Cargo.toml b/languages/rust/macro/Cargo.toml index d2cbdd0e..22a4de7a 100644 --- a/languages/rust/macro/Cargo.toml +++ b/languages/rust/macro/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT" name = "tangram_macro" publish = true repository = "https://github.com/tangramxyz/tangram" -version = "0.4.0" +version = "0.5.0" [lib] path = "lib.rs"