diff --git a/Cargo.lock b/Cargo.lock index c1c07ad8..0d1b7bc7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1109,7 +1109,7 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "fixedpointmath" -version = "0.16.5" +version = "0.16.6" dependencies = [ "ethers", "eyre", @@ -1508,7 +1508,7 @@ dependencies = [ [[package]] name = "hyperdrive-math" -version = "0.16.5" +version = "0.16.6" dependencies = [ "ethers", "eyre", @@ -1524,7 +1524,7 @@ dependencies = [ [[package]] name = "hyperdrive-test-utils" -version = "0.16.5" +version = "0.16.6" dependencies = [ "async-trait", "dotenvy", @@ -1546,7 +1546,7 @@ dependencies = [ [[package]] name = "hyperdrive-wrappers" -version = "0.16.5" +version = "0.16.6" dependencies = [ "dotenv", "ethers", @@ -1564,7 +1564,7 @@ dependencies = [ [[package]] name = "hyperdrivepy" -version = "0.16.5" +version = "0.16.6" dependencies = [ "ethers", "eyre", @@ -3307,7 +3307,7 @@ dependencies = [ [[package]] name = "test-utils" -version = "0.16.5" +version = "0.16.6" dependencies = [ "async-trait", "ethers", diff --git a/Cargo.toml b/Cargo.toml index c7454aec..1236beed 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ members = [ [workspace.package] name = "hyperdrive-rs" -version = "0.16.5" +version = "0.16.6" authors = [ "Alex Towle ", "Dylan Paiton ", @@ -29,9 +29,9 @@ repository = "https://github.com/delvtech/hyperdrive-rs" description = "API for simulating Hyperdrive smart contract transactions." [workspace.dependencies] -fixedpointmath = { version = "0.16.5", path="crates/fixedpointmath" } -hyperdrive-wrappers = { version = "0.16.5", path="crates/hyperdrive-wrappers" } -hyperdrive-math = { version = "0.16.5", path="crates/hyperdrive-math" } +fixedpointmath = { version = "0.16.6", path="crates/fixedpointmath" } +hyperdrive-wrappers = { version = "0.16.6", path="crates/hyperdrive-wrappers" } +hyperdrive-math = { version = "0.16.6", path="crates/hyperdrive-math" } [workspace.lints.clippy] comparison_chain = "allow" diff --git a/bindings/hyperdrivepy/Cargo.toml b/bindings/hyperdrivepy/Cargo.toml index 78163f12..4905734f 100644 --- a/bindings/hyperdrivepy/Cargo.toml +++ b/bindings/hyperdrivepy/Cargo.toml @@ -26,7 +26,4 @@ fixedpointmath = { path = "../../crates/fixedpointmath" } hyperdrive-math = { path = "../../crates/hyperdrive-math" } hyperdrive-wrappers = { path = "../../crates/hyperdrive-wrappers" } -pyo3 = { version = "0.21.2", features = ["abi3-py37", "multiple-pymethods"] } - -[package.metadata.docs.rs] -rustdoc-args = ["--html-in-header", "../assets/katex_header.html"] \ No newline at end of file +pyo3 = { version = "0.21.2", features = ["abi3-py37", "multiple-pymethods"] } \ No newline at end of file diff --git a/bindings/hyperdrivepy/pyproject.toml b/bindings/hyperdrivepy/pyproject.toml index 8e31a8c0..fd0c8d28 100644 --- a/bindings/hyperdrivepy/pyproject.toml +++ b/bindings/hyperdrivepy/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "hyperdrivepy" -version = "0.16.5" +version = "0.16.6" requires-python = ">=3.7" classifiers = [ "Programming Language :: Rust", diff --git a/bindings/hyperdrivepy/setup.py b/bindings/hyperdrivepy/setup.py index d37b2053..5b7549e0 100644 --- a/bindings/hyperdrivepy/setup.py +++ b/bindings/hyperdrivepy/setup.py @@ -5,7 +5,7 @@ setup( name="hyperdrivepy", - version="0.16.5", + version="0.16.6", packages=["hyperdrivepy"], package_dir={"": "python"}, rust_extensions=[ diff --git a/crates/fixedpointmath/Cargo.toml b/crates/fixedpointmath/Cargo.toml index 35316422..780f1afd 100644 --- a/crates/fixedpointmath/Cargo.toml +++ b/crates/fixedpointmath/Cargo.toml @@ -24,4 +24,4 @@ test-utils = { path = "../test-utils" } hyperdrive-wrappers = { path = "../hyperdrive-wrappers" } [package.metadata.docs.rs] -rustdoc-args = ["--html-in-header", "../assets/katex_header.html"] \ No newline at end of file +rustdoc-args = ["--html-in-header", "assets/katex_header.html"] \ No newline at end of file diff --git a/crates/hyperdrive-math/Cargo.toml b/crates/hyperdrive-math/Cargo.toml index b5d0d015..41835c93 100644 --- a/crates/hyperdrive-math/Cargo.toml +++ b/crates/hyperdrive-math/Cargo.toml @@ -33,4 +33,4 @@ tracing-test = "0.1" hyperdrive-test-utils = { path = "../hyperdrive-test-utils" } [package.metadata.docs.rs] -rustdoc-args = ["--html-in-header", "../assets/katex_header.html"] \ No newline at end of file +rustdoc-args = ["--html-in-header", "assets/katex_header.html"] \ No newline at end of file diff --git a/crates/hyperdrive-test-utils/Cargo.toml b/crates/hyperdrive-test-utils/Cargo.toml index 370edd9d..7a3eb4db 100644 --- a/crates/hyperdrive-test-utils/Cargo.toml +++ b/crates/hyperdrive-test-utils/Cargo.toml @@ -36,7 +36,4 @@ tracing = "0.1" # Workspace dependencies. fixedpointmath = { path = "../fixedpointmath" } hyperdrive-wrappers = { path = "../hyperdrive-wrappers" } -test-utils = { path = "../test-utils" } - -[package.metadata.docs.rs] -rustdoc-args = ["--html-in-header", "../assets/katex_header.html"] \ No newline at end of file +test-utils = { path = "../test-utils" } \ No newline at end of file diff --git a/crates/hyperdrive-wrappers/Cargo.toml b/crates/hyperdrive-wrappers/Cargo.toml index 5513e4b1..ec25d795 100644 --- a/crates/hyperdrive-wrappers/Cargo.toml +++ b/crates/hyperdrive-wrappers/Cargo.toml @@ -36,4 +36,4 @@ tokio = { version = "1", features = ["full"] } walkdir = "2" [package.metadata.docs.rs] -rustdoc-args = ["--html-in-header", "../assets/katex_header.html"] \ No newline at end of file +rustdoc-args = ["--html-in-header", "assets/katex_header.html"] \ No newline at end of file diff --git a/crates/test-utils/Cargo.toml b/crates/test-utils/Cargo.toml index 144e65d7..2ea6f31e 100644 --- a/crates/test-utils/Cargo.toml +++ b/crates/test-utils/Cargo.toml @@ -17,7 +17,4 @@ ethers = "2.0.11" eyre = "0.6.8" futures-locks = "0.7.1" lazy_static = "1.4.0" -thiserror = "1.0" - -[package.metadata.docs.rs] -rustdoc-args = ["--html-in-header", "../assets/katex_header.html"] \ No newline at end of file +thiserror = "1.0" \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index f398ef1e..226a9d76 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "hyperdrivepy" -version = "0.16.5" +version = "0.16.6" authors = [ { name = "Dylan Paiton", email = "dylan@delv.tech" }, { name = "Matthew Brown", email = "matt@delv.tech" }, diff --git a/scripts/publish_crates.sh b/scripts/publish_crates.sh index d7356e64..66cc265b 100644 --- a/scripts/publish_crates.sh +++ b/scripts/publish_crates.sh @@ -1,6 +1,16 @@ #!/bin/bash +echo "copy assets into crates" +mkdir crates/fixedpointmath/assets && cp assets/katex_header.html crates/fixedpointmath/assets/ +mkdir crates/hyperdrive-wrappers/assets && cp assets/katex_header.html crates/hyperdrive-wrappers/assets/ +mkdir crates/hyperdrive-math/assets && cp assets/katex_header.html crates/hyperdrive-math/assets/ + echo "publish rust crates to crates.io" cargo publish --token $1 -p fixedpointmath BUILD_DISABLED=true cargo publish --token $1 -p hyperdrive-wrappers -cargo publish --token $1 -p hyperdrive-math \ No newline at end of file +cargo publish --token $1 -p hyperdrive-math + +echo "remove crate asset directories" +rm -rf crates/fixedpointmath/assets +rm -rf crates/hyperdrive-wrappers/assets +rm -rf crates/hyperdrive-math/assets \ No newline at end of file