diff --git a/Cargo.toml b/Cargo.toml index 9cd5c96f..28ba4cb4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,16 +1,46 @@ [workspace] -members = ["sapio" - , "sapio-contrib" - , "ctv_emulators" - , "sapio-base" - , "cli" - , "tools" - , "plugins" - , 'emulator-trait' - , 'examples/*' - , 'sapio-trait' - , 'sapio_macros' - , 'sapio-psbt' - , 'simp-pack'] -exclude = ["plugin-example", "integration_tests"] +members = [ + "sapio", + "sapio-contrib", + "ctv_emulators", + "sapio-base", + "cli", + "tools", + "plugins", + "emulator-trait", + "examples/*", + "sapio-trait", + "sapio_macros", + "sapio-psbt", + "simp-pack", + "batching-trait", + "nft-trait", + "plugin-example/*", +] +exclude = ["integration_tests"] resolver = "2" + +[workspace.package] +description = "A programming framework for bitcoin smart contracts." +version = "0.2.0" +license = "MPL-2.0" +authors = ["Jeremy Rubin "] +edition = "2021" +repository = "https://github.com/sapio-lang/sapio" +homepage = "https://sapio-lang.org" + +[workspace.dependencies] +sapio = { version = "*", path = "sapio" } +sapio-contrib = { version = "*", path = "sapio-contrib" } +ctv_emulators = { version = "*", path = "ctv_emulators" } +sapio-base = { version = "*", path = "sapio-base" } +cli = { version = "*", path = "cli" } +tools = { version = "*", path = "tools" } +sapio-wasm-plugin = { version = "*", path = "plugins" } +sapio-ctv-emulator-trait = { version = "*", path = "emulator-trait" } +sapio-trait = { version = "*", path = "sapio-trait" } +sapio_macros = { version = "*", path = "sapio_macros" } +sapio-psbt = { version = "*", path = "sapio-psbt" } +simp-pack = { version = "*", path = "simp-pack" } +batching-trait = { version = "*", path = "batching-trait" } +sapio-wasm-nft-trait = { version = "*", path = "nft-trait" } diff --git a/batching-trait/Cargo.toml b/batching-trait/Cargo.toml new file mode 100644 index 00000000..e8fdc365 --- /dev/null +++ b/batching-trait/Cargo.toml @@ -0,0 +1,31 @@ +[package] +name = "batching-trait" +version = "0.1.0" +edition = "2021" + +[dependencies] +serde = "1.0" +serde_derive = "1.0" +serde_json = "1.0" + +sapio-base.workspace = true +sapio-ctv-emulator-trait.workspace = true +sapio-trait.workspace = true +sapio-wasm-plugin.workspace = true +sapio-wasm-plugin.features = ["client"] +sapio.workspace = true + +[dependencies.schemars] +version = "0.8.0" +features = ['impl_json_schema'] + +[dependencies.bitcoin] +package = "sapio-bitcoin" +version = "0.28.0" +features = ['use-serde'] + +[dependencies.miniscript] +package = "sapio-miniscript" +version = "^7.0.0" +features = ['compiler', 'use-serde', 'use-schemars', 'serde'] +optional = true diff --git a/plugin-example/batching-trait/src/lib.rs b/batching-trait/src/lib.rs similarity index 100% rename from plugin-example/batching-trait/src/lib.rs rename to batching-trait/src/lib.rs diff --git a/cli/Cargo.toml b/cli/Cargo.toml index cc8112c5..e7d0a73f 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -8,8 +8,6 @@ repository = "https://github.com/sapio-lang/sapio" homepage = "https://sapio-lang.org" description = "A Command Line Interface for interacting with Sapio Contracts" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] schemars = "0.8.0" serde_json = "1.0" @@ -24,9 +22,13 @@ directories = "3.0.1" rand = "^0.6" jsonschema-valid = "0.4.0" -[dependencies.sapio-psbt] -path = "../sapio-psbt" -version = "0.1.0" +sapio-psbt.workspace = true +sapio.workspace = true +sapio-base.workspace = true +ctv_emulators.workspace = true +sapio-contrib.workspace = true +sapio-wasm-plugin.workspace = true +sapio-wasm-plugin.features = ["host"] [dependencies.wasmer] version = "2.2.1" @@ -43,25 +45,3 @@ features = ['use-serde', 'rand', 'base64'] package = "sapio-miniscript" version = "^7.0.0" features = ['compiler', 'use-serde', 'rand', 'use-schemars', 'serde'] - -[dependencies.sapio] -path = "../sapio" -version = "0.2.0" - -[dependencies.sapio-base] -path = "../sapio-base" -version = "0.2.0" - -[dependencies.ctv_emulators] -path = "../ctv_emulators" -version = "0.2.0" - -[dependencies.sapio-contrib] -path = "../sapio-contrib" -version = "0.2.0" - -[dependencies.sapio-wasm-plugin] -path = "../plugins" -version = "0.2.0" - -features = ["host"] diff --git a/ctv_emulators/Cargo.toml b/ctv_emulators/Cargo.toml index 6d65946e..4f3d127c 100644 --- a/ctv_emulators/Cargo.toml +++ b/ctv_emulators/Cargo.toml @@ -8,7 +8,6 @@ repository = "https://github.com/sapio-lang/sapio" homepage = "https://sapio-lang.org" description = "Implementation of the CTV Emulator Trait" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] tokio = { version = "1", features = ["full"] } schemars = "0.8.0" @@ -17,10 +16,8 @@ serde = "1.0" serde_derive = "1.0" rand = "0.8.1" - -[dependencies.sapio-ctv-emulator-trait] -path = "../emulator-trait" -version = "0.2.0" +sapio-ctv-emulator-trait.workspace = true +sapio-base.workspace = true [dependencies.bitcoin] package = "sapio-bitcoin" @@ -32,11 +29,6 @@ package = "sapio-miniscript" version = "^7.0.0" features = ['compiler', 'use-serde', 'rand', 'use-schemars', 'serde'] -[dependencies.sapio-base] -path = "../sapio-base" -version = "0.2.0" - - [lib] name = "emulator_connect" path = "src/lib.rs" diff --git a/emulator-trait/Cargo.toml b/emulator-trait/Cargo.toml index 1441e796..e2c4bf3a 100644 --- a/emulator-trait/Cargo.toml +++ b/emulator-trait/Cargo.toml @@ -8,14 +8,13 @@ repository = "https://github.com/sapio-lang/sapio" homepage = "https://sapio-lang.org" description = "Emulator Trait for mocking out CTV with other logic, trait separate to avoid pulling in tokio to compiler" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] schemars = "0.8.0" serde_json = "1.0" serde = "1.0" serde_derive = "1.0" +sapio-base.workspace = true [dependencies.bitcoin] package = "sapio-bitcoin" @@ -26,7 +25,3 @@ features = ['use-serde'] package = "sapio-miniscript" version = "^7.0.0" features = ['compiler', 'use-serde', 'use-schemars', 'serde'] - -[dependencies.sapio-base] -path = "../sapio-base" -version = "0.2.0" diff --git a/examples/dcf_mining_pool/Cargo.toml b/examples/dcf_mining_pool/Cargo.toml index c55c866f..da49fd73 100644 --- a/examples/dcf_mining_pool/Cargo.toml +++ b/examples/dcf_mining_pool/Cargo.toml @@ -5,10 +5,7 @@ authors = ["Jeremy Rubin "] edition = "2021" publish = false -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] - schemars = "0.8.0" serde_json = "1.0" serde = "1.0" @@ -16,23 +13,14 @@ serde_derive = "1.0" tokio = { version = "1", features = ["full"] } bitcoincore-rpc-async = "4.0.1-alpha.1" +sapio.workspace = true +sapio-base.workspace = true +sapio-ctv-emulator-trait.workspace = true [dependencies.bitcoin] package = "sapio-bitcoin" version = "0.28.0" features = ['use-serde', 'rand'] -[dependencies.sapio] -path = "../../sapio" -version = "0.2.0" - -[dependencies.sapio-base] -path = "../../sapio-base" -version = "0.2.0" - - -[dependencies.sapio-ctv-emulator-trait] -path = "../../emulator-trait" -version = "0.2.0" [dependencies.miniscript] package = "sapio-miniscript" diff --git a/nft-trait/Cargo.toml b/nft-trait/Cargo.toml new file mode 100644 index 00000000..c8519c68 --- /dev/null +++ b/nft-trait/Cargo.toml @@ -0,0 +1,34 @@ +[package] +name = "sapio-wasm-nft-trait" +version = "0.1.0" +edition = "2021" + +[package.metadata.wasm-pack.profile.release] +wasm-opt = false + +[dependencies] +serde_json = "1.0" +serde = "1.0" +serde_derive = "1.0" + +simp-pack.workspace = true +sapio.workspace = true +sapio-base.workspace = true +sapio-wasm-plugin.workspace = true +sapio-trait.workspace = true +sapio-ctv-emulator-trait.workspace = true + +[dependencies.schemars] +version = "0.8.0" +features = ['impl_json_schema'] + +[dependencies.bitcoin] +package = "sapio-bitcoin" +version = "0.28.0" +features = ['use-serde'] + +[dependencies.miniscript] +package = "sapio-miniscript" +version = "^7.0.0" +features = ['compiler', 'use-serde', 'use-schemars', 'serde'] +optional = true diff --git a/plugin-example/nft-trait/src/lib.rs b/nft-trait/src/lib.rs similarity index 100% rename from plugin-example/nft-trait/src/lib.rs rename to nft-trait/src/lib.rs diff --git a/plugin-example/Cargo.toml b/plugin-example/Cargo.toml deleted file mode 100644 index 560354ad..00000000 --- a/plugin-example/Cargo.toml +++ /dev/null @@ -1,19 +0,0 @@ -[workspace] -members = ["treepay" - , "trampolinepay" - , "batching-trait" - , "vault" - , "staker" - , "coin_pool" - , "fedpeg" - , "helloworld" - , "op_return_chain" - , "hanukkiah" - , "payment_pool" - , "jamesob-vault" - , "nft-trait" - , "nft" - , "nft-sale" - , "nft-auction" - , "clause-module" - , "clause-module-trampoline"] diff --git a/plugin-example/batching-trait/Cargo.toml b/plugin-example/batching-trait/Cargo.toml deleted file mode 100644 index 0c00a911..00000000 --- a/plugin-example/batching-trait/Cargo.toml +++ /dev/null @@ -1,48 +0,0 @@ -[package] -name = "batching-trait" -version = "0.1.0" -edition = "2021" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[dependencies] -serde_json = "1.0" -serde = "1.0" -serde_derive = "1.0" - -[dependencies.schemars] -version = "0.8.0" -features = ['impl_json_schema'] - -[dependencies.bitcoin] -package = "sapio-bitcoin" -version = "0.28.0" -features = ['use-serde'] -[dependencies.sapio] -path = "../../sapio" -version = "0.2.0" - -[dependencies.sapio-base] -path = "../../sapio-base" -version = "0.2.0" - - -[dependencies.sapio-trait] -path = "../../sapio-trait" -version = "0.2.0" - -[dependencies.sapio-ctv-emulator-trait] -path = "../../emulator-trait" -version = "0.2.0" - -[dependencies.miniscript] -package = "sapio-miniscript" -version = "^7.0.0" -features = ['compiler', 'use-serde', 'use-schemars', 'serde'] -optional = true - - -[dependencies.sapio-wasm-plugin] -path = "../../plugins" -version = "0.2.0" -features = ["client"] diff --git a/plugin-example/clause-module-trampoline/Cargo.toml b/plugin-example/clause-module-trampoline/Cargo.toml index 25c73d4e..82744fc3 100644 --- a/plugin-example/clause-module-trampoline/Cargo.toml +++ b/plugin-example/clause-module-trampoline/Cargo.toml @@ -1,21 +1,34 @@ [package] name = "sapio-wasm-clause-trampoline" version = "0.1.0" -license = "MPL-2.0" -authors = ["Jeremy Rubin "] -edition = "2021" -repository = "https://github.com/sapio-lang/sapio" -homepage = "https://sapio-lang.org" description = "An Example Sapio Application" +license.workspace = true +authors.workspace = true +edition.workspace = true +repository.workspace = true +homepage.workspace = true +publish = false -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[package.metadata.wasm-pack.profile.release] +wasm-opt = false +[lib] +crate-type = ["cdylib", "rlib"] +path = "src/plugin.rs" [dependencies] serde_json = "1.0" serde = "1.0" serde_derive = "1.0" +sapio.workspace = true +batching-trait.workspace = true +sapio-base.workspace = true +sapio-contrib.workspace = true +sapio-ctv-emulator-trait.workspace = true +sapio-wasm-plugin.workspace = true +sapio-trait.workspace = true + [dependencies.schemars] version = "0.8.0" features = ['impl_json_schema'] @@ -24,44 +37,9 @@ features = ['impl_json_schema'] package = "sapio-bitcoin" version = "0.28.0" features = ['use-serde'] -[dependencies.sapio] -path = "../../sapio" -version = "0.2.0" - -[dependencies.batching-trait] -path = "../batching-trait" -version = "0.1.0" - -[dependencies.sapio-base] -path = "../../sapio-base" -version = "0.2.0" -[dependencies.sapio-contrib] -path = "../../sapio-contrib" -version = "0.2.0" -[lib] -crate-type = ["cdylib", "rlib"] -path = "src/plugin.rs" - - -[dependencies.sapio-ctv-emulator-trait] -path = "../../emulator-trait" -version = "0.2.0" [dependencies.miniscript] package = "sapio-miniscript" version = "^7.0.0" features = ['compiler', 'use-serde', 'use-schemars', 'serde'] optional = true - -[package.metadata.wasm-pack.profile.release] -wasm-opt = false - -[dependencies.sapio-wasm-plugin] -path = "../../plugins" -version = "0.2.0" -features = ["client"] - - -[dependencies.sapio-trait] -path = "../../sapio-trait" -version = "0.2.0" diff --git a/plugin-example/clause-module/Cargo.toml b/plugin-example/clause-module/Cargo.toml index e3b40be7..ee88b8a0 100644 --- a/plugin-example/clause-module/Cargo.toml +++ b/plugin-example/clause-module/Cargo.toml @@ -1,21 +1,34 @@ [package] name = "sapio-wasm-clause" version = "0.1.0" -license = "MPL-2.0" -authors = ["Jeremy Rubin "] -edition = "2021" -repository = "https://github.com/sapio-lang/sapio" -homepage = "https://sapio-lang.org" description = "An Example Sapio Application" +license.workspace = true +authors.workspace = true +edition.workspace = true +repository.workspace = true +homepage.workspace = true +publish = false -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[package.metadata.wasm-pack.profile.release] +wasm-opt = false +[lib] +crate-type = ["cdylib", "rlib"] +path = "src/plugin.rs" [dependencies] serde_json = "1.0" serde = "1.0" serde_derive = "1.0" +sapio.workspace = true +batching-trait.workspace = true +sapio-base.workspace = true +sapio-contrib.workspace = true +sapio-ctv-emulator-trait.workspace = true +sapio-wasm-plugin.workspace = true +sapio-wasm-plugin.features = ["client"] + [dependencies.schemars] version = "0.8.0" features = ['impl_json_schema'] @@ -24,39 +37,9 @@ features = ['impl_json_schema'] package = "sapio-bitcoin" version = "0.28.0" features = ['use-serde'] -[dependencies.sapio] -path = "../../sapio" -version = "0.2.0" - -[dependencies.batching-trait] -path = "../batching-trait" -version = "0.1.0" - -[dependencies.sapio-base] -path = "../../sapio-base" -version = "0.2.0" -[dependencies.sapio-contrib] -path = "../../sapio-contrib" -version = "0.2.0" -[lib] -crate-type = ["cdylib", "rlib"] -path = "src/plugin.rs" - - -[dependencies.sapio-ctv-emulator-trait] -path = "../../emulator-trait" -version = "0.2.0" [dependencies.miniscript] package = "sapio-miniscript" version = "^7.0.0" features = ['compiler', 'use-serde', 'use-schemars', 'serde'] optional = true - -[package.metadata.wasm-pack.profile.release] -wasm-opt = false - -[dependencies.sapio-wasm-plugin] -path = "../../plugins" -version = "0.2.0" -features = ["client"] diff --git a/plugin-example/coin_pool/Cargo.toml b/plugin-example/coin_pool/Cargo.toml index cac0ecd4..2a88df5b 100644 --- a/plugin-example/coin_pool/Cargo.toml +++ b/plugin-example/coin_pool/Cargo.toml @@ -1,62 +1,45 @@ [package] name = "sapio-wasm-coin-pool" version = "0.1.0" -license = "MPL-2.0" -authors = ["Jeremy Rubin "] -edition = "2021" -repository = "https://github.com/sapio-lang/sapio" -homepage = "https://sapio-lang.org" description = "An Example Sapio Application" +license.workspace = true +authors.workspace = true +edition.workspace = true +repository.workspace = true +homepage.workspace = true +publish = false -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[package.metadata.wasm-pack.profile.release] +wasm-opt = false +[lib] +crate-type = ["cdylib", "rlib"] +path = "src/plugin.rs" [dependencies] serde_json = "1.0" serde = "1.0" serde_derive = "1.0" +sapio.workspace = true +batching-trait.workspace = true +sapio-base.workspace = true +sapio-contrib.workspace = true +sapio-ctv-emulator-trait.workspace = true +sapio-wasm-plugin.workspace = true +sapio-wasm-plugin.features = ["client"] [dependencies.schemars] version = "0.8.0" features = ['impl_json_schema'] + [dependencies.bitcoin] package = "sapio-bitcoin" version = "0.28.0" features = ['use-serde'] -[dependencies.sapio] -path = "../../sapio" -version = "0.2.0" - -[dependencies.batching-trait] -path = "../batching-trait" -version = "0.1.0" - -[dependencies.sapio-base] -path = "../../sapio-base" -version = "0.2.0" -[dependencies.sapio-contrib] -path = "../../sapio-contrib" -version = "0.2.0" -[lib] -crate-type = ["cdylib", "rlib"] -path = "src/plugin.rs" - - -[dependencies.sapio-ctv-emulator-trait] -path = "../../emulator-trait" -version = "0.2.0" [dependencies.miniscript] package = "sapio-miniscript" version = "^7.0.0" features = ['compiler', 'use-serde', 'use-schemars', 'serde'] optional = true - -[package.metadata.wasm-pack.profile.release] -wasm-opt = false - -[dependencies.sapio-wasm-plugin] -path = "../../plugins" -version = "0.2.0" -features = ["client"] diff --git a/plugin-example/dao/Cargo.toml b/plugin-example/dao/Cargo.toml index 7a6eabce..49ad882e 100644 --- a/plugin-example/dao/Cargo.toml +++ b/plugin-example/dao/Cargo.toml @@ -1,21 +1,33 @@ [package] name = "sapio-wasm-dao" version = "0.1.0" -license = "MPL-2.0" -authors = ["Jeremy Rubin "] -edition = "2021" -repository = "https://github.com/sapio-lang/sapio" -homepage = "https://sapio-lang.org" description = "An Example Sapio Application" +license.workspace = true +authors.workspace = true +edition.workspace = true +repository.workspace = true +homepage.workspace = true +publish = false -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[package.metadata.wasm-pack.profile.release] +wasm-opt = false +[lib] +crate-type = ["cdylib", "rlib"] +path = "src/dao.rs" [dependencies] serde_json = "1.0" serde = "1.0" serde_derive = "1.0" +sapio.workspace = true +sapio-base.workspace = true +sapio-contrib.workspace = true +sapio-ctv-emulator-trait.workspace = true +sapio-wasm-plugin.workspace = true +batching-trait.workspace = true +sapio-wasm-nft-trait.workspace = true [dependencies.schemars] version = "0.8.0" @@ -24,44 +36,9 @@ features = ['impl_json_schema'] package = "sapio-bitcoin" version = "^0.28.0" features = ['use-serde'] -[dependencies.sapio] -path = "../../sapio" -version = "0.2.0" - -[dependencies.batching-trait] -path = "../batching-trait" -version = "0.1.0" - -[dependencies.sapio-base] -path = "../../sapio-base" -version = "0.2.0" -[dependencies.sapio-contrib] -path = "../../sapio-contrib" -version = "0.2.0" -[lib] -crate-type = ["cdylib", "rlib"] -path = "src/dao.rs" - - -[dependencies.sapio-ctv-emulator-trait] -path = "../../emulator-trait" -version = "0.2.0" [dependencies.miniscript] package = "sapio-miniscript" version = "7.0.0" features = ['compiler', 'use-serde', 'use-schemars', 'serde'] optional = true - -[package.metadata.wasm-pack.profile.release] -wasm-opt = false - -[dependencies.sapio-wasm-plugin] -path = "../../plugins" -version = "0.2.0" -features = ["client"] - - -[dependencies.sapio-wasm-nft-trait] -path = "../nft-trait" -version = "0.1.0" diff --git a/plugin-example/fedpeg/Cargo.toml b/plugin-example/fedpeg/Cargo.toml index 2bd3e001..f5f68757 100644 --- a/plugin-example/fedpeg/Cargo.toml +++ b/plugin-example/fedpeg/Cargo.toml @@ -1,21 +1,34 @@ [package] name = "sapio-wasm-fedpeg" version = "0.1.0" -license = "MPL-2.0" -authors = ["Jeremy Rubin "] -edition = "2021" -repository = "https://github.com/sapio-lang/sapio" -homepage = "https://sapio-lang.org" description = "An Example Sapio Application" +license.workspace = true +authors.workspace = true +edition.workspace = true +repository.workspace = true +homepage.workspace = true +publish = false -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[package.metadata.wasm-pack.profile.release] +wasm-opt = false +[lib] +crate-type = ["cdylib", "rlib"] +path = "src/plugin.rs" [dependencies] serde_json = "1.0" serde = "1.0" serde_derive = "1.0" +sapio.workspace = true +batching-trait.workspace = true +sapio-base.workspace = true +sapio-contrib.workspace = true +sapio-ctv-emulator-trait.workspace = true +sapio-wasm-plugin.workspace = true +sapio-wasm-plugin.features = ["client"] + [dependencies.schemars] version = "0.8.0" features = ['impl_json_schema'] @@ -24,39 +37,9 @@ features = ['impl_json_schema'] package = "sapio-bitcoin" version = "0.28.0" features = ['use-serde'] -[dependencies.sapio] -path = "../../sapio" -version = "0.2.0" - -[dependencies.batching-trait] -path = "../batching-trait" -version = "0.1.0" - -[dependencies.sapio-base] -path = "../../sapio-base" -version = "0.2.0" -[dependencies.sapio-contrib] -path = "../../sapio-contrib" -version = "0.2.0" -[lib] -crate-type = ["cdylib", "rlib"] -path = "src/plugin.rs" - - -[dependencies.sapio-ctv-emulator-trait] -path = "../../emulator-trait" -version = "0.2.0" [dependencies.miniscript] package = "sapio-miniscript" version = "^7.0.0" features = ['compiler', 'use-serde', 'use-schemars', 'serde'] optional = true - -[package.metadata.wasm-pack.profile.release] -wasm-opt = false - -[dependencies.sapio-wasm-plugin] -path = "../../plugins" -version = "0.2.0" -features = ["client"] diff --git a/plugin-example/hanukkiah/Cargo.toml b/plugin-example/hanukkiah/Cargo.toml index c002c96b..97ef6fb0 100644 --- a/plugin-example/hanukkiah/Cargo.toml +++ b/plugin-example/hanukkiah/Cargo.toml @@ -7,14 +7,28 @@ edition = "2021" repository = "https://github.com/sapio-lang/sapio" homepage = "https://sapio-lang.org" description = "An Example Sapio Application" +publish = false -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[package.metadata.wasm-pack.profile.release] +wasm-opt = false +[lib] +crate-type = ["cdylib", "rlib"] +path = "src/plugin.rs" [dependencies] serde_json = "1.0" serde = "1.0" serde_derive = "1.0" + +sapio.workspace = true +batching-trait.workspace = true +sapio-base.workspace = true +sapio-contrib.workspace = true +sapio-ctv-emulator-trait.workspace = true +sapio-wasm-plugin.workspace = true +sapio-wasm-plugin.features = ["client"] + [dependencies.schemars] version = "0.8.0" features = ['impl_json_schema'] @@ -23,39 +37,9 @@ features = ['impl_json_schema'] package = "sapio-bitcoin" version = "0.28.0" features = ['use-serde'] -[dependencies.sapio] -path = "../../sapio" -version = "0.2.0" - -[dependencies.batching-trait] -path = "../batching-trait" -version = "0.1.0" - -[dependencies.sapio-base] -path = "../../sapio-base" -version = "0.2.0" -[dependencies.sapio-contrib] -path = "../../sapio-contrib" -version = "0.2.0" -[lib] -crate-type = ["cdylib", "rlib"] -path = "src/plugin.rs" - - -[dependencies.sapio-ctv-emulator-trait] -path = "../../emulator-trait" -version = "0.2.0" [dependencies.miniscript] package = "sapio-miniscript" version = "^7.0.0" features = ['compiler', 'use-serde', 'use-schemars', 'serde'] optional = true - -[package.metadata.wasm-pack.profile.release] -wasm-opt = false - -[dependencies.sapio-wasm-plugin] -path = "../../plugins" -version = "0.2.0" -features = ["client"] diff --git a/plugin-example/helloworld/Cargo.toml b/plugin-example/helloworld/Cargo.toml index bfc86668..9eb66822 100644 --- a/plugin-example/helloworld/Cargo.toml +++ b/plugin-example/helloworld/Cargo.toml @@ -1,21 +1,34 @@ [package] name = "sapio-wasm-helloworld" version = "0.1.0" -license = "MPL-2.0" -authors = ["Jeremy Rubin "] -edition = "2021" -repository = "https://github.com/sapio-lang/sapio" -homepage = "https://sapio-lang.org" description = "An Example Sapio Application" +license.workspace = true +authors.workspace = true +edition.workspace = true +repository.workspace = true +homepage.workspace = true +publish = false -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[package.metadata.wasm-pack.profile.release] +wasm-opt = false +[lib] +crate-type = ["cdylib", "rlib"] +path = "src/plugin.rs" [dependencies] serde_json = "1.0" serde = "1.0" serde_derive = "1.0" +sapio.workspace = true +batching-trait.workspace = true +sapio-base.workspace = true +sapio-contrib.workspace = true +sapio-ctv-emulator-trait.workspace = true +sapio-wasm-plugin.workspace = true +sapio-wasm-plugin.features = ["client"] + [dependencies.schemars] version = "0.8.0" features = ['impl_json_schema'] @@ -24,39 +37,9 @@ features = ['impl_json_schema'] package = "sapio-bitcoin" version = "0.28.0" features = ['use-serde'] -[dependencies.sapio] -path = "../../sapio" -version = "0.2.0" - -[dependencies.batching-trait] -path = "../batching-trait" -version = "0.1.0" - -[dependencies.sapio-base] -path = "../../sapio-base" -version = "0.2.0" -[dependencies.sapio-contrib] -path = "../../sapio-contrib" -version = "0.2.0" -[lib] -crate-type = ["cdylib", "rlib"] -path = "src/plugin.rs" - - -[dependencies.sapio-ctv-emulator-trait] -path = "../../emulator-trait" -version = "0.2.0" [dependencies.miniscript] package = "sapio-miniscript" version = "^7.0.0" features = ['compiler', 'use-serde', 'use-schemars', 'serde'] optional = true - -[package.metadata.wasm-pack.profile.release] -wasm-opt = false - -[dependencies.sapio-wasm-plugin] -path = "../../plugins" -version = "0.2.0" -features = ["client"] diff --git a/plugin-example/jamesob-vault/Cargo.toml b/plugin-example/jamesob-vault/Cargo.toml index f0183c2e..785b1602 100644 --- a/plugin-example/jamesob-vault/Cargo.toml +++ b/plugin-example/jamesob-vault/Cargo.toml @@ -1,19 +1,33 @@ [package] name = "sapio-wasm-jamesob-vault" version = "0.1.0" -license = "MPL-2.0" -authors = ["Jeremy Rubin "] -edition = "2021" -repository = "https://github.com/sapio-lang/sapio" -homepage = "https://sapio-lang.org" description = "An Example Sapio Application based on https://github.com/jamesob/simple-ctv-vault" +license.workspace = true +authors.workspace = true +edition.workspace = true +repository.workspace = true +homepage.workspace = true +publish = false -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lib] +crate-type = ["cdylib", "rlib"] +path = "src/plugin.rs" +[package.metadata.wasm-pack.profile.release] +wasm-opt = false [dependencies] serde = "1.0" serde_derive = "1.0" + +sapio.workspace = true +batching-trait.workspace = true +sapio-base.workspace = true +sapio-contrib.workspace = true +sapio-ctv-emulator-trait.workspace = true +sapio-wasm-plugin.workspace = true +sapio-wasm-plugin.features = ["client"] + [dependencies.schemars] version = "0.8.0" features = ['impl_json_schema'] @@ -26,40 +40,9 @@ features = ["preserve_order"] package = "sapio-bitcoin" version = "0.28.0" features = ['use-serde'] -[dependencies.sapio] -path = "../../sapio" -version = "0.2.0" - -[dependencies.batching-trait] -path = "../batching-trait" -version = "0.1.0" - -[dependencies.sapio-base] -path = "../../sapio-base" -version = "0.2.0" -[dependencies.sapio-contrib] -path = "../../sapio-contrib" -version = "0.2.0" -[lib] -crate-type = ["cdylib", "rlib"] -path = "src/plugin.rs" - - -[dependencies.sapio-ctv-emulator-trait] -path = "../../emulator-trait" -version = "0.2.0" - [dependencies.miniscript] package = "sapio-miniscript" version = "^7.0.0" features = ['compiler', 'use-serde', 'use-schemars', 'serde'] optional = true - -[package.metadata.wasm-pack.profile.release] -wasm-opt = false - -[dependencies.sapio-wasm-plugin] -path = "../../plugins" -version = "0.2.0" -features = ["client"] diff --git a/plugin-example/nft-auction/Cargo.toml b/plugin-example/nft-auction/Cargo.toml index c653983c..3d143050 100644 --- a/plugin-example/nft-auction/Cargo.toml +++ b/plugin-example/nft-auction/Cargo.toml @@ -1,15 +1,16 @@ [package] name = "sapio-wasm-nft-auction" version = "0.1.0" -license = "MPL-2.0" -authors = ["Jeremy Rubin "] -edition = "2021" -repository = "https://github.com/sapio-lang/sapio" -homepage = "https://sapio-lang.org" description = "An Example Sapio Application" +license.workspace = true +authors.workspace = true +edition.workspace = true +repository.workspace = true +homepage.workspace = true +publish = false -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - +[package.metadata.wasm-pack.profile.release] +wasm-opt = false [lib] crate-type = ["cdylib", "rlib"] @@ -20,49 +21,26 @@ serde_json = "1.0" serde = "1.0" serde_derive = "1.0" +sapio.workspace = true +batching-trait.workspace = true +sapio-base.workspace = true +sapio-contrib.workspace = true +sapio-ctv-emulator-trait.workspace = true +sapio-wasm-plugin.workspace = true +sapio-wasm-plugin.features = ["client"] +sapio-wasm-nft-trait.workspace = true [dependencies.schemars] version = "0.8.0" features = ['impl_json_schema'] + [dependencies.bitcoin] package = "sapio-bitcoin" version = "0.28.0" features = ['use-serde'] -[dependencies.sapio] -path = "../../sapio" -version = "0.2.0" - -[dependencies.batching-trait] -path = "../batching-trait" -version = "0.1.0" - -[dependencies.sapio-base] -path = "../../sapio-base" -version = "0.2.0" -[dependencies.sapio-contrib] -path = "../../sapio-contrib" -version = "0.2.0" - - -[dependencies.sapio-ctv-emulator-trait] -path = "../../emulator-trait" -version = "0.2.0" [dependencies.miniscript] package = "sapio-miniscript" version = "^7.0.0" features = ['compiler', 'use-serde', 'use-schemars', 'serde'] optional = true - -[package.metadata.wasm-pack.profile.release] -wasm-opt = false - -[dependencies.sapio-wasm-plugin] -path = "../../plugins" -version = "0.2.0" -features = ["client"] - - -[dependencies.sapio-wasm-nft-trait] -path = "../nft-trait" -version = "0.1.0" diff --git a/plugin-example/nft-sale/Cargo.toml b/plugin-example/nft-sale/Cargo.toml index 17ec3b78..18998d52 100644 --- a/plugin-example/nft-sale/Cargo.toml +++ b/plugin-example/nft-sale/Cargo.toml @@ -1,69 +1,46 @@ [package] name = "sapio-wasm-nft-sale" version = "0.1.0" -license = "MPL-2.0" -authors = ["Jeremy Rubin "] -edition = "2021" -repository = "https://github.com/sapio-lang/sapio" -homepage = "https://sapio-lang.org" description = "An Example Sapio Application" +license.workspace = true +authors.workspace = true +edition.workspace = true +repository.workspace = true +homepage.workspace = true +publish = false -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - +[package.metadata.wasm-pack.profile.release] +wasm-opt = false [lib] crate-type = ["cdylib", "rlib"] path = "src/plugin.rs" -[package.metadata.wasm-pack.profile.release] -wasm-opt = false - [dependencies] serde_json = "1.0" serde = "1.0" serde_derive = "1.0" +sapio.workspace = true +batching-trait.workspace = true +sapio-base.workspace = true +sapio-contrib.workspace = true +sapio-ctv-emulator-trait.workspace = true +sapio-wasm-plugin.workspace = true +sapio-wasm-plugin.features = ["client"] +sapio-wasm-nft-trait.workspace = true [dependencies.schemars] version = "0.8.0" features = ['impl_json_schema'] + [dependencies.bitcoin] package = "sapio-bitcoin" version = "0.28.0" features = ['use-serde'] -[dependencies.sapio] -path = "../../sapio" -version = "0.2.0" - -[dependencies.batching-trait] -path = "../batching-trait" -version = "0.1.0" - -[dependencies.sapio-base] -path = "../../sapio-base" -version = "0.2.0" -[dependencies.sapio-contrib] -path = "../../sapio-contrib" -version = "0.2.0" - - -[dependencies.sapio-ctv-emulator-trait] -path = "../../emulator-trait" -version = "0.2.0" [dependencies.miniscript] package = "sapio-miniscript" version = "^7.0.0" features = ['compiler', 'use-serde', 'use-schemars', 'serde'] optional = true - - -[dependencies.sapio-wasm-plugin] -path = "../../plugins" -version = "0.2.0" -features = ["client"] - - -[dependencies.sapio-wasm-nft-trait] -path = "../nft-trait" -version = "0.1.0" diff --git a/plugin-example/nft-trait/Cargo.toml b/plugin-example/nft-trait/Cargo.toml deleted file mode 100644 index 7bb68080..00000000 --- a/plugin-example/nft-trait/Cargo.toml +++ /dev/null @@ -1,53 +0,0 @@ -[package] -name = "sapio-wasm-nft-trait" -version = "0.1.0" -edition = "2021" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[package.metadata.wasm-pack.profile.release] -wasm-opt = false - -[dependencies] -serde_json = "1.0" -serde = "1.0" -serde_derive = "1.0" - -[dependencies.simp-pack] -path = "../../simp-pack" -version = "0.1.0" -[dependencies.schemars] -version = "0.8.0" -features = ['impl_json_schema'] - -[dependencies.bitcoin] -package = "sapio-bitcoin" -version = "0.28.0" -features = ['use-serde'] -[dependencies.sapio] -path = "../../sapio" -version = "0.2.0" - -[dependencies.sapio-base] -path = "../../sapio-base" -version = "0.2.0" - -[dependencies.sapio-wasm-plugin] -path = "../../plugins" -version = "0.2.0" -features = ["client"] - - -[dependencies.sapio-trait] -path = "../../sapio-trait" -version = "0.2.0" - -[dependencies.sapio-ctv-emulator-trait] -path = "../../emulator-trait" -version = "0.2.0" - -[dependencies.miniscript] -package = "sapio-miniscript" -version = "^7.0.0" -features = ['compiler', 'use-serde', 'use-schemars', 'serde'] -optional = true diff --git a/plugin-example/nft/Cargo.toml b/plugin-example/nft/Cargo.toml index 952a1c88..782e6433 100644 --- a/plugin-example/nft/Cargo.toml +++ b/plugin-example/nft/Cargo.toml @@ -1,66 +1,46 @@ [package] name = "sapio-wasm-nft" version = "0.1.0" -license = "MPL-2.0" -authors = ["Jeremy Rubin "] -edition = "2021" -repository = "https://github.com/sapio-lang/sapio" -homepage = "https://sapio-lang.org" description = "An Example Sapio Application" +license.workspace = true +authors.workspace = true +edition.workspace = true +repository.workspace = true +homepage.workspace = true +publish = false -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[package.metadata.wasm-pack.profile.release] +wasm-opt = false [lib] crate-type = ["cdylib", "rlib"] path = "src/plugin.rs" -[package.metadata.wasm-pack.profile.release] -wasm-opt = false [dependencies] serde_json = "1.0" serde = "1.0" serde_derive = "1.0" +sapio.workspace = true +batching-trait.workspace = true +sapio-base.workspace = true +sapio-contrib.workspace = true +sapio-ctv-emulator-trait.workspace = true +sapio-wasm-plugin.workspace = true +sapio-wasm-plugin.features = ["client"] +sapio-wasm-nft-trait.workspace = true [dependencies.schemars] version = "0.8.0" features = ['impl_json_schema'] + [dependencies.bitcoin] package = "sapio-bitcoin" version = "0.28.0" features = ['use-serde'] -[dependencies.sapio] -path = "../../sapio" -version = "0.2.0" - -[dependencies.batching-trait] -path = "../batching-trait" -version = "0.1.0" - -[dependencies.sapio-base] -path = "../../sapio-base" -version = "0.2.0" -[dependencies.sapio-contrib] -path = "../../sapio-contrib" -version = "0.2.0" - - -[dependencies.sapio-ctv-emulator-trait] -path = "../../emulator-trait" -version = "0.2.0" [dependencies.miniscript] package = "sapio-miniscript" version = "^7.0.0" features = ['compiler', 'use-serde', 'use-schemars', 'serde'] optional = true - - -[dependencies.sapio-wasm-plugin] -path = "../../plugins" -version = "0.2.0" -features = ["client"] - -[dependencies.sapio-wasm-nft-trait] -path = "../nft-trait" -version = "0.1.0" diff --git a/plugin-example/op_return_chain/Cargo.toml b/plugin-example/op_return_chain/Cargo.toml index 0000adb4..c21935e2 100644 --- a/plugin-example/op_return_chain/Cargo.toml +++ b/plugin-example/op_return_chain/Cargo.toml @@ -1,62 +1,45 @@ [package] name = "sapio-wasm-op-return-chain" version = "0.1.0" -license = "MPL-2.0" -authors = ["Jeremy Rubin "] -edition = "2021" -repository = "https://github.com/sapio-lang/sapio" -homepage = "https://sapio-lang.org" description = "An Example Sapio Application" +license.workspace = true +authors.workspace = true +edition.workspace = true +repository.workspace = true +homepage.workspace = true +publish = false -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[package.metadata.wasm-pack.profile.release] +wasm-opt = false +[lib] +crate-type = ["cdylib", "rlib"] +path = "src/plugin.rs" [dependencies] serde_json = "1.0" serde = "1.0" serde_derive = "1.0" +sapio.workspace = true +batching-trait.workspace = true +sapio-base.workspace = true +sapio-contrib.workspace = true +sapio-ctv-emulator-trait.workspace = true +sapio-wasm-plugin.workspace = true +sapio-wasm-plugin.features = ["client"] [dependencies.schemars] version = "0.8.0" features = ['impl_json_schema'] + [dependencies.bitcoin] package = "sapio-bitcoin" version = "0.28.0" features = ['use-serde'] -[dependencies.sapio] -path = "../../sapio" -version = "0.2.0" - -[dependencies.batching-trait] -path = "../batching-trait" -version = "0.1.0" - -[dependencies.sapio-base] -path = "../../sapio-base" -version = "0.2.0" -[dependencies.sapio-contrib] -path = "../../sapio-contrib" -version = "0.2.0" -[lib] -crate-type = ["cdylib", "rlib"] -path = "src/plugin.rs" - - -[dependencies.sapio-ctv-emulator-trait] -path = "../../emulator-trait" -version = "0.2.0" [dependencies.miniscript] package = "sapio-miniscript" version = "^7.0.0" features = ['compiler', 'use-serde', 'use-schemars', 'serde'] optional = true - -[package.metadata.wasm-pack.profile.release] -wasm-opt = false - -[dependencies.sapio-wasm-plugin] -path = "../../plugins" -version = "0.2.0" -features = ["client"] diff --git a/plugin-example/payment_pool/Cargo.toml b/plugin-example/payment_pool/Cargo.toml index 6abcf5d0..b14c51b5 100644 --- a/plugin-example/payment_pool/Cargo.toml +++ b/plugin-example/payment_pool/Cargo.toml @@ -1,62 +1,45 @@ [package] name = "sapio-wasm-payment-pool" version = "0.1.0" -license = "MPL-2.0" -authors = ["Jeremy Rubin "] -edition = "2021" -repository = "https://github.com/sapio-lang/sapio" -homepage = "https://sapio-lang.org" description = "An Example Sapio Application" +license.workspace = true +authors.workspace = true +edition.workspace = true +repository.workspace = true +homepage.workspace = true +publish = false -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[package.metadata.wasm-pack.profile.release] +wasm-opt = false +[lib] +crate-type = ["cdylib", "rlib"] +path = "src/payment_pool.rs" [dependencies] serde_json = "1.0" serde = "1.0" serde_derive = "1.0" +sapio.workspace = true +batching-trait.workspace = true +sapio-base.workspace = true +sapio-contrib.workspace = true +sapio-ctv-emulator-trait.workspace = true +sapio-wasm-plugin.workspace = true +sapio-wasm-plugin.features = ["client"] [dependencies.schemars] version = "0.8.0" features = ['impl_json_schema'] + [dependencies.bitcoin] package = "sapio-bitcoin" version = "0.28.0" features = ['use-serde'] -[dependencies.sapio] -path = "../../sapio" -version = "0.2.0" - -[dependencies.batching-trait] -path = "../batching-trait" -version = "0.1.0" - -[dependencies.sapio-base] -path = "../../sapio-base" -version = "0.2.0" -[dependencies.sapio-contrib] -path = "../../sapio-contrib" -version = "0.2.0" -[lib] -crate-type = ["cdylib", "rlib"] -path = "src/payment_pool.rs" - - -[dependencies.sapio-ctv-emulator-trait] -path = "../../emulator-trait" -version = "0.2.0" [dependencies.miniscript] package = "sapio-miniscript" version = "^7.0.0" features = ['compiler', 'use-serde', 'use-schemars', 'serde'] optional = true - -[package.metadata.wasm-pack.profile.release] -wasm-opt = false - -[dependencies.sapio-wasm-plugin] -path = "../../plugins" -version = "0.2.0" -features = ["client"] diff --git a/plugin-example/staker/Cargo.toml b/plugin-example/staker/Cargo.toml index 5491eb1d..d95801ed 100644 --- a/plugin-example/staker/Cargo.toml +++ b/plugin-example/staker/Cargo.toml @@ -1,21 +1,34 @@ [package] name = "sapio-wasm-staker" version = "0.1.0" -license = "MPL-2.0" -authors = ["Jeremy Rubin "] -edition = "2021" -repository = "https://github.com/sapio-lang/sapio" -homepage = "https://sapio-lang.org" description = "An Example Sapio Application" +license.workspace = true +authors.workspace = true +edition.workspace = true +repository.workspace = true +homepage.workspace = true +publish = false -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[package.metadata.wasm-pack.profile.release] +wasm-opt = false +[lib] +crate-type = ["cdylib", "rlib"] +path = "src/plugin.rs" [dependencies] serde_json = "1.0" serde = "1.0" serde_derive = "1.0" +sapio.workspace = true +batching-trait.workspace = true +sapio-base.workspace = true +sapio-contrib.workspace = true +sapio-ctv-emulator-trait.workspace = true +sapio-wasm-plugin.workspace = true +sapio-wasm-plugin.features = ["client"] + [dependencies.schemars] version = "0.8.0" features = ['impl_json_schema'] @@ -24,39 +37,9 @@ features = ['impl_json_schema'] package = "sapio-bitcoin" version = "0.28.0" features = ['use-serde'] -[dependencies.sapio] -path = "../../sapio" -version = "0.2.0" - -[dependencies.batching-trait] -path = "../batching-trait" -version = "0.1.0" - -[dependencies.sapio-base] -path = "../../sapio-base" -version = "0.2.0" -[dependencies.sapio-contrib] -path = "../../sapio-contrib" -version = "0.2.0" -[lib] -crate-type = ["cdylib", "rlib"] -path = "src/plugin.rs" - - -[dependencies.sapio-ctv-emulator-trait] -path = "../../emulator-trait" -version = "0.2.0" [dependencies.miniscript] package = "sapio-miniscript" version = "^7.0.0" features = ['compiler', 'use-serde', 'use-schemars', 'serde'] optional = true - -[package.metadata.wasm-pack.profile.release] -wasm-opt = false - -[dependencies.sapio-wasm-plugin] -path = "../../plugins" -version = "0.2.0" -features = ["client"] diff --git a/plugin-example/trampolinepay/Cargo.toml b/plugin-example/trampolinepay/Cargo.toml index 1f977025..71a7e9e0 100644 --- a/plugin-example/trampolinepay/Cargo.toml +++ b/plugin-example/trampolinepay/Cargo.toml @@ -1,58 +1,44 @@ [package] name = "trampolinepay" version = "0.1.0" -license = "MPL-2.0" -authors = ["Jeremy Rubin "] -edition = "2021" -repository = "https://github.com/sapio-lang/sapio" -homepage = "https://sapio-lang.org" description = "An Example Sapio Application" +license.workspace = true +authors.workspace = true +edition.workspace = true +repository.workspace = true +homepage.workspace = true +publish = false -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[package.metadata.wasm-pack.profile.release] +wasm-opt = false +[lib] +crate-type = ["cdylib", "rlib"] +path = "src/plugin.rs" [dependencies] serde_json = "1.0" serde = "1.0" serde_derive = "1.0" +sapio.workspace = true +batching-trait.workspace = true +sapio-base.workspace = true +sapio-ctv-emulator-trait.workspace = true +sapio-wasm-plugin.workspace = true +sapio-wasm-plugin.features = ["client"] + [dependencies.schemars] version = "0.8.0" features = ['impl_json_schema'] + [dependencies.bitcoin] package = "sapio-bitcoin" version = "0.28.0" features = ['use-serde'] -[dependencies.sapio] -path = "../../sapio" -version = "0.2.0" - -[dependencies.batching-trait] -path = "../batching-trait" -version = "0.1.0" - -[dependencies.sapio-base] -path = "../../sapio-base" -version = "0.2.0" -[lib] -crate-type = ["cdylib", "rlib"] -path = "src/plugin.rs" - - -[dependencies.sapio-ctv-emulator-trait] -path = "../../emulator-trait" -version = "0.2.0" [dependencies.miniscript] package = "sapio-miniscript" version = "^7.0.0" features = ['compiler', 'use-serde', 'use-schemars', 'serde'] optional = true - -[package.metadata.wasm-pack.profile.release] -wasm-opt = false - -[dependencies.sapio-wasm-plugin] -path = "../../plugins" -version = "0.2.0" -features = ["client"] diff --git a/plugin-example/treepay/Cargo.toml b/plugin-example/treepay/Cargo.toml index 23cac13b..215cff6f 100644 --- a/plugin-example/treepay/Cargo.toml +++ b/plugin-example/treepay/Cargo.toml @@ -1,21 +1,33 @@ [package] name = "sapio-wasm-plugin-example" version = "0.1.0" -license = "MPL-2.0" -authors = ["Jeremy Rubin "] -edition = "2021" -repository = "https://github.com/sapio-lang/sapio" -homepage = "https://sapio-lang.org" description = "An Example Sapio Application" +license.workspace = true +authors.workspace = true +edition.workspace = true +repository.workspace = true +homepage.workspace = true +publish = false -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[package.metadata.wasm-pack.profile.release] +wasm-opt = false +[lib] +crate-type = ["cdylib", "rlib"] +path = "src/plugin.rs" [dependencies] serde_json = "1.0" serde = "1.0" serde_derive = "1.0" +sapio.workspace = true +batching-trait.workspace = true +sapio-base.workspace = true +sapio-ctv-emulator-trait.workspace = true +sapio-wasm-plugin.workspace = true +sapio-wasm-plugin.features = ["client"] + [dependencies.schemars] version = "0.8.0" features = ['impl_json_schema'] @@ -24,36 +36,9 @@ features = ['impl_json_schema'] package = "sapio-bitcoin" version = "0.28.0" features = ['use-serde'] -[dependencies.sapio] -path = "../../sapio" -version = "0.2.0" - -[dependencies.batching-trait] -path = "../batching-trait" -version = "0.1.0" - -[dependencies.sapio-base] -path = "../../sapio-base" -version = "0.2.0" -[lib] -crate-type = ["cdylib", "rlib"] -path = "src/plugin.rs" - - -[dependencies.sapio-ctv-emulator-trait] -path = "../../emulator-trait" -version = "0.2.0" [dependencies.miniscript] package = "sapio-miniscript" version = "^7.0.0" features = ['compiler', 'use-serde', 'use-schemars', 'serde'] optional = true - -[package.metadata.wasm-pack.profile.release] -wasm-opt = false - -[dependencies.sapio-wasm-plugin] -path = "../../plugins" -version = "0.2.0" -features = ["client"] diff --git a/plugin-example/vault/Cargo.toml b/plugin-example/vault/Cargo.toml index eff2d323..3ec96dd4 100644 --- a/plugin-example/vault/Cargo.toml +++ b/plugin-example/vault/Cargo.toml @@ -1,20 +1,34 @@ [package] name = "sapio-wasm-vault" version = "0.1.0" -license = "MPL-2.0" -authors = ["Jeremy Rubin "] -edition = "2021" -repository = "https://github.com/sapio-lang/sapio" -homepage = "https://sapio-lang.org" description = "An Example Sapio Application" +license.workspace = true +authors.workspace = true +edition.workspace = true +repository.workspace = true +homepage.workspace = true +publish = false -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[package.metadata.wasm-pack.profile.release] +wasm-opt = false +[lib] +crate-type = ["cdylib", "rlib"] +path = "src/plugin.rs" [dependencies] serde_json = "1.0" serde = "1.0" serde_derive = "1.0" + +sapio.workspace = true +batching-trait.workspace = true +sapio-base.workspace = true +sapio-contrib.workspace = true +sapio-ctv-emulator-trait.workspace = true +sapio-wasm-plugin.workspace = true +sapio-wasm-plugin.features = ["client"] + [dependencies.schemars] version = "0.8.0" features = ['impl_json_schema'] @@ -23,40 +37,9 @@ features = ['impl_json_schema'] package = "sapio-bitcoin" version = "0.28.0" features = ['use-serde'] -[dependencies.sapio] -path = "../../sapio" -version = "0.2.0" - -[dependencies.batching-trait] -path = "../batching-trait" -version = "0.1.0" - -[dependencies.sapio-base] -path = "../../sapio-base" -version = "0.2.0" -[dependencies.sapio-contrib] -path = "../../sapio-contrib" -version = "0.2.0" -[lib] -crate-type = ["cdylib", "rlib"] -path = "src/plugin.rs" - - -[dependencies.sapio-ctv-emulator-trait] -path = "../../emulator-trait" -version = "0.2.0" - [dependencies.miniscript] package = "sapio-miniscript" version = "^7.0.0" features = ['compiler', 'use-serde', 'use-schemars', 'serde'] optional = true - -[package.metadata.wasm-pack.profile.release] -wasm-opt = false - -[dependencies.sapio-wasm-plugin] -path = "../../plugins" -version = "0.2.0" -features = ["client"] diff --git a/plugins/Cargo.toml b/plugins/Cargo.toml index c072adbe..4814fc9c 100644 --- a/plugins/Cargo.toml +++ b/plugins/Cargo.toml @@ -1,20 +1,24 @@ [package] name = "sapio-wasm-plugin" version = "0.2.0" -license = "MPL-2.0" -authors = ["Jeremy Rubin "] -edition = "2021" -repository = "https://github.com/sapio-lang/sapio" -homepage = "https://sapio-lang.org" description = "Libarary for building client/host sapio plugin bindings" +license.workspace = true +authors.workspace = true +edition.workspace = true +repository.workspace = true +homepage.workspace = true -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[package.metadata.wasm-pack.profile.release] +wasm-opt = false [features] default = ["client"] host = ["wasmer", "wasmer-cache", "tokio"] client = ["miniscript"] +[lib] +path = "src/lib.rs" + [dependencies] schemars = "0.8.0" serde_json = "1.0" @@ -23,9 +27,10 @@ serde_derive = "1.0" base64 = "0.13.0" hex = "0.4.3" -[dependencies.sapio-trait] -version = "0.2.0" -path = "../sapio-trait" +sapio-trait.workspace = true +sapio.workspace = true +sapio-base.workspace = true +sapio-ctv-emulator-trait.workspace = true [dependencies.wasmer] version = "2.2.1" @@ -44,27 +49,9 @@ features = ["full"] package = "sapio-bitcoin" version = "0.28.0" features = ['use-serde'] -[dependencies.sapio] -path = "../sapio" -version = "0.2.0" - -[dependencies.sapio-base] -path = "../sapio-base" -version = "0.2.0" - -[lib] -path = "src/lib.rs" - - -[dependencies.sapio-ctv-emulator-trait] -path = "../emulator-trait" -version = "0.2.0" [dependencies.miniscript] package = "sapio-miniscript" version = "^7.0.0" features = ['compiler', 'use-serde', 'use-schemars', 'serde'] optional = true - -[package.metadata.wasm-pack.profile.release] -wasm-opt = false diff --git a/sapio-base/Cargo.toml b/sapio-base/Cargo.toml index a8723431..2fdd56ab 100644 --- a/sapio-base/Cargo.toml +++ b/sapio-base/Cargo.toml @@ -8,21 +8,18 @@ repository = "https://github.com/sapio-lang/sapio" homepage = "https://sapio-lang.org" description = "Sapio Base functionalities and trait definitions." -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - - [dependencies] schemars = "0.8.0" serde_json = "1.0" serde = "1.0" serde_derive = "1.0" -[dependencies.miniscript] -package = "sapio-miniscript" -version = "^7.0.0" -features = ['compiler', 'use-serde', 'use-schemars', 'serde'] - [dependencies.bitcoin] package = "sapio-bitcoin" version = "0.28.0" features = ['use-serde'] + +[dependencies.miniscript] +package = "sapio-miniscript" +version = "^7.0.0" +features = ['compiler', 'use-serde', 'use-schemars', 'serde'] diff --git a/sapio-contrib/Cargo.toml b/sapio-contrib/Cargo.toml index 08d7e798..00d8c1fb 100644 --- a/sapio-contrib/Cargo.toml +++ b/sapio-contrib/Cargo.toml @@ -8,40 +8,27 @@ repository = "https://github.com/sapio-lang/sapio" homepage = "https://sapio-lang.org" description = "User submitted staging ground for contracts and utilities made for Sapio." -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] schemars = "0.8.0" serde_json = "1.0" serde = "1.0" serde_derive = "1.0" lazy_static = "1.4.0" -[dependencies.sapio_macros] -path = "../sapio_macros" -version = "0.2.0" + +sapio_macros.workspace = true +sapio.workspace = true +sapio-base.workspace = true +sapio-ctv-emulator-trait.workspace = true [dependencies.bitcoin] package = "sapio-bitcoin" version = "0.28.0" features = ['use-serde'] -[dependencies.sapio] -path = "../sapio" -version = "0.2.0" - -[dependencies.sapio-base] -path = "../sapio-base" -version = "0.2.0" - [dependencies.miniscript] package = "sapio-miniscript" version = "^7.0.0" features = ['compiler', 'use-serde', 'use-schemars', 'serde'] - -[dependencies.sapio-ctv-emulator-trait] -path = "../emulator-trait" -version = "0.2.0" - [dev-dependencies] rand = "^0.6" diff --git a/sapio-psbt/Cargo.toml b/sapio-psbt/Cargo.toml index 5db57135..77157e72 100644 --- a/sapio-psbt/Cargo.toml +++ b/sapio-psbt/Cargo.toml @@ -7,8 +7,6 @@ repository = "https://github.com/sapio-lang/sapio" homepage = "https://sapio-lang.org" description = "Utilities for working with Partially Signed Bitcoin Transactions (psbts)" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] tokio = { version = "1", features = ["full"] } base64 = "0.13.0" @@ -23,4 +21,4 @@ features = ['use-serde', 'rand', 'base64'] [dependencies.miniscript] package = "sapio-miniscript" version = "^7.0.0" -features = ['compiler', 'use-serde', 'rand', 'use-schemars', 'serde'] \ No newline at end of file +features = ['compiler', 'use-serde', 'rand', 'use-schemars', 'serde'] diff --git a/sapio-trait/Cargo.toml b/sapio-trait/Cargo.toml index 01ae1843..79f33ea3 100644 --- a/sapio-trait/Cargo.toml +++ b/sapio-trait/Cargo.toml @@ -8,8 +8,6 @@ repository = "https://github.com/sapio-lang/sapio" homepage = "https://sapio-lang.org" description = "A programming framework for bitcoin smart contracts." -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] schemars = "0.8.0" serde_json = "1.0" diff --git a/sapio/Cargo.toml b/sapio/Cargo.toml index 1785c2a1..5f5101c1 100644 --- a/sapio/Cargo.toml +++ b/sapio/Cargo.toml @@ -1,20 +1,12 @@ [package] name = "sapio" -version = "0.2.0" -license = "MPL-2.0" -authors = ["Jeremy Rubin "] -edition = "2021" -repository = "https://github.com/sapio-lang/sapio" -homepage = "https://sapio-lang.org" -description = "A programming framework for bitcoin smart contracts." - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - - -[dependencies.miniscript] -package = "sapio-miniscript" -version = "^7.0.0" -features = ['compiler', 'use-serde', 'use-schemars', 'serde'] +version.workspace = true +edition.workspace = true +authors.workspace = true +license.workspace = true +repository.workspace = true +homepage.workspace = true +description.workspace = true [features] # used to enable some niceties if compiling on a nightly compiler @@ -27,6 +19,9 @@ paste = "1.0" base64 = "0.13.0" lazy_static = "1.4.0" +sapio-base.workspace = true +sapio-ctv-emulator-trait.workspace = true +sapio_macros.workspace = true [dependencies.serde] version = "1.0" @@ -40,15 +35,7 @@ package = "sapio-bitcoin" version = "0.28.0" features = ['use-serde'] - -[dependencies.sapio-base] -path = "../sapio-base" -version = "0.2.0" - -[dependencies.sapio-ctv-emulator-trait] -path = "../emulator-trait" -version = "0.2.0" - -[dependencies.sapio_macros] -path = "../sapio_macros" -version = "0.2.0" +[dependencies.miniscript] +package = "sapio-miniscript" +version = "^7.0.0" +features = ['compiler', 'use-serde', 'use-schemars', 'serde'] diff --git a/sapio_macros/Cargo.toml b/sapio_macros/Cargo.toml index 14b18cac..7c4ac453 100644 --- a/sapio_macros/Cargo.toml +++ b/sapio_macros/Cargo.toml @@ -8,8 +8,6 @@ repository = "https://github.com/sapio-lang/sapio" homepage = "https://sapio-lang.org" description = "A programming framework for bitcoin smart contracts." -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [lib] proc-macro = true diff --git a/simp-pack/Cargo.toml b/simp-pack/Cargo.toml index 61d76894..54a7592e 100644 --- a/simp-pack/Cargo.toml +++ b/simp-pack/Cargo.toml @@ -6,16 +6,13 @@ repository = "https://github.com/sapio-lang/sapio" homepage = "https://sapio-lang.org" description = "Starter Pack of Sapio Interactive Metadata Protocols; currently non-standardized" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] schemars = "0.8.0" serde_json = "1.0" serde = "1.0" serde_derive = "1.0" -[dependencies.sapio-base] -path = "../sapio-base" -version = "0.2.0" + +sapio-base.workspace = true [dependencies.bitcoin] package = "sapio-bitcoin" diff --git a/tools/Cargo.toml b/tools/Cargo.toml index c33c2639..3d52ea5b 100644 --- a/tools/Cargo.toml +++ b/tools/Cargo.toml @@ -15,6 +15,7 @@ serde = "1.0" serde_derive = "1.0" tokio = { version = "1", features = ["full"] } bitcoincore-rpc-async = "4.0.1-alpha.1" +sapio-base.workspace = true [dependencies.miniscript] package = "sapio-miniscript" @@ -25,7 +26,3 @@ features = ['compiler', 'use-serde', 'rand', 'use-schemars', 'serde'] package = "sapio-bitcoin" version = "0.28.0" features = ['use-serde', 'rand'] - -[dependencies.sapio-base] -path = "../sapio-base" -version = "0.2.0"