From 0e9d393de39c3a4bc7d5719b5a1bf7e3c0d5da22 Mon Sep 17 00:00:00 2001 From: Hernando Castano Date: Wed, 24 Apr 2024 13:34:26 +0200 Subject: [PATCH] Release `v0.9.0` (#71) * Add `description` field to `core` and `runtime` crates * Add symlink from crates to top level `wit` folder When we try and publish the crates the relative path doesn't get resolved correctly. Instead we add a symlink in each crate, which is typically the default location `witgen` looks for `wit` folders anyways. * Pre-populate release version for `core` in `runtime` TOML --- core/Cargo.toml | 3 ++- core/src/lib.rs | 1 - core/wit | 1 + runtime/Cargo.toml | 2 +- runtime/src/lib.rs | 1 - runtime/wit | 1 + 6 files changed, 5 insertions(+), 4 deletions(-) create mode 120000 core/wit create mode 120000 runtime/wit diff --git a/core/Cargo.toml b/core/Cargo.toml index f51d1cb..e29ac7d 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -1,11 +1,12 @@ [package] name = "entropy-programs-core" -version = "0.1.0" +version = "0.9.0" authors = ["Entropy Cryptography "] homepage = "https://entropy.xyz/" license = "AGPL-3.0-or-later" repository = "https://github.com/entropyxyz/programs" edition = "2021" +description = "Core traits and types for building programs on the Entropy network." [dependencies] getrandom = { version = "0.2", default-features = false, features = ["custom"] } diff --git a/core/src/lib.rs b/core/src/lib.rs index 73e54e7..b47241e 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -4,7 +4,6 @@ pub mod bindgen { wit_bindgen::generate!({ world: "program", - path: "../wit/application.wit", macro_export }); } diff --git a/core/wit b/core/wit new file mode 120000 index 0000000..8c60207 --- /dev/null +++ b/core/wit @@ -0,0 +1 @@ +../wit \ No newline at end of file diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index c461994..e518956 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -9,7 +9,7 @@ edition = "2021" [dependencies] wasmtime = { version = "12.0.1", features = ["component-model"] } -entropy-programs-core = { path = "../core" } +entropy-programs-core = { version = "0.9.0", path = "../core" } thiserror = "1.0.47" [dev-dependencies] diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index b3e33b8..4410034 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -12,7 +12,6 @@ mod bindgen { bindgen!({ world: "program", - path: "../wit/application.wit" }); } pub use bindgen::{Error as ProgramError, Program, SignatureRequest}; diff --git a/runtime/wit b/runtime/wit new file mode 120000 index 0000000..8c60207 --- /dev/null +++ b/runtime/wit @@ -0,0 +1 @@ +../wit \ No newline at end of file