diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1bed5c67..ae54fcce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: sudo apt install libudev-dev - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 - - run: cargo check --all-features + - run: cargo check --all-features --workspace test: name: Test Suite @@ -49,7 +49,7 @@ jobs: with: components: rustfmt - uses: Swatinem/rust-cache@v2 - - run: cargo fmt + - run: cargo fmt --check --all clippy: name: Clippy @@ -64,7 +64,7 @@ jobs: with: components: clippy - uses: Swatinem/rust-cache@v2 - - run: cargo clippy --all-features + - run: cargo clippy --all-features --workspace spelling: name: Spell Check @@ -89,4 +89,4 @@ jobs: with: components: rust-docs - uses: Swatinem/rust-cache@v2 - - run: cargo doc --no-deps --all-features + - run: cargo doc --no-deps --all-features --workspace diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 678e44b0..9536f69f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,6 @@ jobs: sudo apt update sudo apt install libudev-dev - uses: dtolnay/rust-toolchain@stable - - run: cargo publish --all-features --locked --verbose + - run: cargo publish --all-features --locked --verbose -p zproto env: CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} diff --git a/Cargo.toml b/Cargo.toml index b0b4af33..85ecff11 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,109 +1,3 @@ -[package] -name = "zproto" -version = "0.4.0-pre" -authors = ["Stephen Hunt "] -edition = "2021" -description = "A library from communicating with Zaber products in Rust." -license = "MIT" -readme = "README.md" -repository = "https://github.com/stphnt/zproto" -documentation = "https://docs.rs/zproto" -homepage = "https://github.com/stphnt/zproto" -keywords = ["Zaber", "ASCII", "Binary", "serial", "RS232"] -categories = ["hardware-support"] -include = [ - "examples/", - "src/", - "test/", - "LICENSE", - "README.md", -] - -[package.metadata.docs.rs] -all-features = true - [workspace] -members = ["scripts/generate-apis"] - -[features] -default = ["ascii", "binary", "v_latest"] -ascii = [] # Include the ASCII protocol -binary = [] # Include the Binary protocol -v6_14 = [] # Enable APIs related to firmware version 6.14 -v6_15 = [] # Enable APIs related to firmware version 6.15 -v6_16 = [] # Enable APIs related to firmware version 6.16 -v6_17 = [] # Enable APIs related to firmware version 6.17 -v6_18 = [] # Enable APIs related to firmware version 6.18 -v6_19 = [] # Enable APIs related to firmware version 6.19 -v6_20 = [] # Enable APIs related to firmware version 6.20 -v6_21 = [] # Enable APIs related to firmware version 6.21 -v6_22 = [] # Enable APIs related to firmware version 6.22 -v6_23 = [] # Enable APIs related to firmware version 6.23 -v6_24 = [] # Enable APIs related to firmware version 6.24 -v6_25 = [] # Enable APIs related to firmware version 6.25 -v6_26 = [] # Enable APIs related to firmware version 6.26 -v6_27 = [] # Enable APIs related to firmware version 6.27 -v6_28 = [] # Enable APIs related to firmware version 6.28 -v6_29 = [] # Enable APIs related to firmware version 6.29 -v6_30 = [] # Enable APIs related to firmware version 6.30 -v6_31 = [] # Enable APIs related to firmware version 6.31 -v6_32 = [] # Enable APIs related to firmware version 6.32 -v7_01 = [] # Enable APIs related to firmware version 7.01 -v7_03 = [] # Enable APIs related to firmware version 7.03 -v7_05 = [] # Enable APIs related to firmware version 7.05 -v7_06 = [] # Enable APIs related to firmware version 7.06 -v7_07 = [] # Enable APIs related to firmware version 7.07 -v7_08 = [] # Enable APIs related to firmware version 7.08 -v7_09 = [] # Enable APIs related to firmware version 7.09 -v7_10 = [] # Enable APIs related to firmware version 7.10 -v7_11 = [] # Enable APIs related to firmware version 7.11 -v7_12 = [] # Enable APIs related to firmware version 7.12 -v7_13 = [] # Enable APIs related to firmware version 7.13 -v7_14 = [] # Enable APIs related to firmware version 7.14 -v7_15 = [] # Enable APIs related to firmware version 7.15 -v7_16 = [] # Enable APIs related to firmware version 7.16 -v7_17 = [] # Enable APIs related to firmware version 7.17 -v7_18 = [] # Enable APIs related to firmware version 7.18 -v7_19 = [] # Enable APIs related to firmware version 7.19 -v7_20 = [] # Enable APIs related to firmware version 7.20 -v7_21 = [] # Enable APIs related to firmware version 7.21 -v7_22 = [] # Enable APIs related to firmware version 7.22 -v7_23 = [] # Enable APIs related to firmware version 7.23 -v7_24 = [] # Enable APIs related to firmware version 7.24 -v7_25 = [] # Enable APIs related to firmware version 7.25 -v7_26 = [] # Enable APIs related to firmware version 7.26 -v7_27 = [] # Enable APIs related to firmware version 7.27 -v7_28 = [] # Enable APIs related to firmware version 7.28 -v7_29 = [] # Enable APIs related to firmware version 7.29 -v7_30 = [] # Enable APIs related to firmware version 7.30 -v7_31 = [] # Enable APIs related to firmware version 7.31 -v7_32 = [] # Enable APIs related to firmware version 7.32 -v7_33 = [] # Enable APIs related to firmware version 7.33 -v7_34 = [] # Enable APIs related to firmware version 7.34 -v7_35 = [] # Enable APIs related to firmware version 7.35 -v7_36 = [] # Enable APIs related to firmware version 7.36 -v7_37 = [] # Enable APIs related to firmware version 7.37 -v7_38 = [] # Enable APIs related to firmware version 7.38 -v7_39 = [] # Enable APIs related to firmware version 7.39 -v_latest = [] # Enable APIs related to the latest firmware version - -# Use the nightly-only `doc_cfg` feature when generating the documentation. -doc_cfg = [] - -[dependencies] -log = "0.4.19" -paste = "1.0.12" -serialport = "4.2.1" - -[dev-dependencies] -simple_logger = "4.2.0" -static_assertions = "1.1.0" -trybuild = "1.0.80" - -[[example]] -name = "ascii" -required-features = ["ascii"] - -[[example]] -name = "binary" -required-features = ["binary"] +resolver = "2" +members = ["crates/*"] \ No newline at end of file diff --git a/scripts/generate-apis/Cargo.toml b/crates/generate-apis/Cargo.toml similarity index 100% rename from scripts/generate-apis/Cargo.toml rename to crates/generate-apis/Cargo.toml diff --git a/scripts/generate-apis/src/db.rs b/crates/generate-apis/src/db.rs similarity index 100% rename from scripts/generate-apis/src/db.rs rename to crates/generate-apis/src/db.rs diff --git a/scripts/generate-apis/src/gen.rs b/crates/generate-apis/src/gen.rs similarity index 100% rename from scripts/generate-apis/src/gen.rs rename to crates/generate-apis/src/gen.rs diff --git a/scripts/generate-apis/src/lib.rs b/crates/generate-apis/src/lib.rs similarity index 100% rename from scripts/generate-apis/src/lib.rs rename to crates/generate-apis/src/lib.rs diff --git a/scripts/generate-apis/src/main.rs b/crates/generate-apis/src/main.rs similarity index 100% rename from scripts/generate-apis/src/main.rs rename to crates/generate-apis/src/main.rs diff --git a/crates/zproto/Cargo.toml b/crates/zproto/Cargo.toml new file mode 100644 index 00000000..c94666d9 --- /dev/null +++ b/crates/zproto/Cargo.toml @@ -0,0 +1,106 @@ +[package] +name = "zproto" +version = "0.4.0-pre" +authors = ["Stephen Hunt "] +edition = "2021" +description = "A library from communicating with Zaber products in Rust." +license = "MIT" +readme = "README.md" +repository = "https://github.com/stphnt/zproto" +documentation = "https://docs.rs/zproto" +homepage = "https://github.com/stphnt/zproto" +keywords = ["Zaber", "ASCII", "Binary", "serial", "RS232"] +categories = ["hardware-support"] +include = [ + "examples/", + "src/", + "test/", + "LICENSE", + "README.md", +] + +[package.metadata.docs.rs] +all-features = true + +[features] +default = ["ascii", "binary", "v_latest"] +ascii = [] # Include the ASCII protocol +binary = [] # Include the Binary protocol +v6_14 = [] # Enable APIs related to firmware version 6.14 +v6_15 = [] # Enable APIs related to firmware version 6.15 +v6_16 = [] # Enable APIs related to firmware version 6.16 +v6_17 = [] # Enable APIs related to firmware version 6.17 +v6_18 = [] # Enable APIs related to firmware version 6.18 +v6_19 = [] # Enable APIs related to firmware version 6.19 +v6_20 = [] # Enable APIs related to firmware version 6.20 +v6_21 = [] # Enable APIs related to firmware version 6.21 +v6_22 = [] # Enable APIs related to firmware version 6.22 +v6_23 = [] # Enable APIs related to firmware version 6.23 +v6_24 = [] # Enable APIs related to firmware version 6.24 +v6_25 = [] # Enable APIs related to firmware version 6.25 +v6_26 = [] # Enable APIs related to firmware version 6.26 +v6_27 = [] # Enable APIs related to firmware version 6.27 +v6_28 = [] # Enable APIs related to firmware version 6.28 +v6_29 = [] # Enable APIs related to firmware version 6.29 +v6_30 = [] # Enable APIs related to firmware version 6.30 +v6_31 = [] # Enable APIs related to firmware version 6.31 +v6_32 = [] # Enable APIs related to firmware version 6.32 +v7_01 = [] # Enable APIs related to firmware version 7.01 +v7_03 = [] # Enable APIs related to firmware version 7.03 +v7_05 = [] # Enable APIs related to firmware version 7.05 +v7_06 = [] # Enable APIs related to firmware version 7.06 +v7_07 = [] # Enable APIs related to firmware version 7.07 +v7_08 = [] # Enable APIs related to firmware version 7.08 +v7_09 = [] # Enable APIs related to firmware version 7.09 +v7_10 = [] # Enable APIs related to firmware version 7.10 +v7_11 = [] # Enable APIs related to firmware version 7.11 +v7_12 = [] # Enable APIs related to firmware version 7.12 +v7_13 = [] # Enable APIs related to firmware version 7.13 +v7_14 = [] # Enable APIs related to firmware version 7.14 +v7_15 = [] # Enable APIs related to firmware version 7.15 +v7_16 = [] # Enable APIs related to firmware version 7.16 +v7_17 = [] # Enable APIs related to firmware version 7.17 +v7_18 = [] # Enable APIs related to firmware version 7.18 +v7_19 = [] # Enable APIs related to firmware version 7.19 +v7_20 = [] # Enable APIs related to firmware version 7.20 +v7_21 = [] # Enable APIs related to firmware version 7.21 +v7_22 = [] # Enable APIs related to firmware version 7.22 +v7_23 = [] # Enable APIs related to firmware version 7.23 +v7_24 = [] # Enable APIs related to firmware version 7.24 +v7_25 = [] # Enable APIs related to firmware version 7.25 +v7_26 = [] # Enable APIs related to firmware version 7.26 +v7_27 = [] # Enable APIs related to firmware version 7.27 +v7_28 = [] # Enable APIs related to firmware version 7.28 +v7_29 = [] # Enable APIs related to firmware version 7.29 +v7_30 = [] # Enable APIs related to firmware version 7.30 +v7_31 = [] # Enable APIs related to firmware version 7.31 +v7_32 = [] # Enable APIs related to firmware version 7.32 +v7_33 = [] # Enable APIs related to firmware version 7.33 +v7_34 = [] # Enable APIs related to firmware version 7.34 +v7_35 = [] # Enable APIs related to firmware version 7.35 +v7_36 = [] # Enable APIs related to firmware version 7.36 +v7_37 = [] # Enable APIs related to firmware version 7.37 +v7_38 = [] # Enable APIs related to firmware version 7.38 +v7_39 = [] # Enable APIs related to firmware version 7.39 +v_latest = [] # Enable APIs related to the latest firmware version + +# Use the nightly-only `doc_cfg` feature when generating the documentation. +doc_cfg = [] + +[dependencies] +log = "0.4.19" +paste = "1.0.12" +serialport = "4.2.1" + +[dev-dependencies] +simple_logger = "4.2.0" +static_assertions = "1.1.0" +trybuild = "1.0.80" + +[[example]] +name = "ascii" +required-features = ["ascii"] + +[[example]] +name = "binary" +required-features = ["binary"] diff --git a/README.md b/crates/zproto/README.md similarity index 100% rename from README.md rename to crates/zproto/README.md diff --git a/examples/ascii.rs b/crates/zproto/examples/ascii.rs similarity index 100% rename from examples/ascii.rs rename to crates/zproto/examples/ascii.rs diff --git a/examples/binary.rs b/crates/zproto/examples/binary.rs similarity index 100% rename from examples/binary.rs rename to crates/zproto/examples/binary.rs diff --git a/src/ascii.rs b/crates/zproto/src/ascii.rs similarity index 100% rename from src/ascii.rs rename to crates/zproto/src/ascii.rs diff --git a/src/ascii/chain.rs b/crates/zproto/src/ascii/chain.rs similarity index 100% rename from src/ascii/chain.rs rename to crates/zproto/src/ascii/chain.rs diff --git a/src/ascii/chain/data_type.rs b/crates/zproto/src/ascii/chain/data_type.rs similarity index 100% rename from src/ascii/chain/data_type.rs rename to crates/zproto/src/ascii/chain/data_type.rs diff --git a/src/ascii/chain/info.rs b/crates/zproto/src/ascii/chain/info.rs similarity index 100% rename from src/ascii/chain/info.rs rename to crates/zproto/src/ascii/chain/info.rs diff --git a/src/ascii/chain/iter.rs b/crates/zproto/src/ascii/chain/iter.rs similarity index 100% rename from src/ascii/chain/iter.rs rename to crates/zproto/src/ascii/chain/iter.rs diff --git a/src/ascii/chain/scope.rs b/crates/zproto/src/ascii/chain/scope.rs similarity index 100% rename from src/ascii/chain/scope.rs rename to crates/zproto/src/ascii/chain/scope.rs diff --git a/src/ascii/chain/setting.rs b/crates/zproto/src/ascii/chain/setting.rs similarity index 100% rename from src/ascii/chain/setting.rs rename to crates/zproto/src/ascii/chain/setting.rs diff --git a/src/ascii/checksum.rs b/crates/zproto/src/ascii/checksum.rs similarity index 100% rename from src/ascii/checksum.rs rename to crates/zproto/src/ascii/checksum.rs diff --git a/src/ascii/command.rs b/crates/zproto/src/ascii/command.rs similarity index 100% rename from src/ascii/command.rs rename to crates/zproto/src/ascii/command.rs diff --git a/src/ascii/id.rs b/crates/zproto/src/ascii/id.rs similarity index 100% rename from src/ascii/id.rs rename to crates/zproto/src/ascii/id.rs diff --git a/src/ascii/packet.rs b/crates/zproto/src/ascii/packet.rs similarity index 100% rename from src/ascii/packet.rs rename to crates/zproto/src/ascii/packet.rs diff --git a/src/ascii/packet/packet.rs b/crates/zproto/src/ascii/packet/packet.rs similarity index 100% rename from src/ascii/packet/packet.rs rename to crates/zproto/src/ascii/packet/packet.rs diff --git a/src/ascii/packet/test.rs b/crates/zproto/src/ascii/packet/test.rs similarity index 100% rename from src/ascii/packet/test.rs rename to crates/zproto/src/ascii/packet/test.rs diff --git a/src/ascii/packet/token.rs b/crates/zproto/src/ascii/packet/token.rs similarity index 100% rename from src/ascii/packet/token.rs rename to crates/zproto/src/ascii/packet/token.rs diff --git a/src/ascii/packet/visitor.rs b/crates/zproto/src/ascii/packet/visitor.rs similarity index 100% rename from src/ascii/packet/visitor.rs rename to crates/zproto/src/ascii/packet/visitor.rs diff --git a/src/ascii/port.rs b/crates/zproto/src/ascii/port.rs similarity index 100% rename from src/ascii/port.rs rename to crates/zproto/src/ascii/port.rs diff --git a/src/ascii/port/handlers.rs b/crates/zproto/src/ascii/port/handlers.rs similarity index 100% rename from src/ascii/port/handlers.rs rename to crates/zproto/src/ascii/port/handlers.rs diff --git a/src/ascii/port/iter.rs b/crates/zproto/src/ascii/port/iter.rs similarity index 100% rename from src/ascii/port/iter.rs rename to crates/zproto/src/ascii/port/iter.rs diff --git a/src/ascii/port/options.rs b/crates/zproto/src/ascii/port/options.rs similarity index 100% rename from src/ascii/port/options.rs rename to crates/zproto/src/ascii/port/options.rs diff --git a/src/ascii/port/test.rs b/crates/zproto/src/ascii/port/test.rs similarity index 100% rename from src/ascii/port/test.rs rename to crates/zproto/src/ascii/port/test.rs diff --git a/src/ascii/response.rs b/crates/zproto/src/ascii/response.rs similarity index 100% rename from src/ascii/response.rs rename to crates/zproto/src/ascii/response.rs diff --git a/src/ascii/response/alert.rs b/crates/zproto/src/ascii/response/alert.rs similarity index 100% rename from src/ascii/response/alert.rs rename to crates/zproto/src/ascii/response/alert.rs diff --git a/src/ascii/response/builder.rs b/crates/zproto/src/ascii/response/builder.rs similarity index 100% rename from src/ascii/response/builder.rs rename to crates/zproto/src/ascii/response/builder.rs diff --git a/src/ascii/response/check.rs b/crates/zproto/src/ascii/response/check.rs similarity index 100% rename from src/ascii/response/check.rs rename to crates/zproto/src/ascii/response/check.rs diff --git a/src/ascii/response/info.rs b/crates/zproto/src/ascii/response/info.rs similarity index 100% rename from src/ascii/response/info.rs rename to crates/zproto/src/ascii/response/info.rs diff --git a/src/ascii/response/reply.rs b/crates/zproto/src/ascii/response/reply.rs similarity index 100% rename from src/ascii/response/reply.rs rename to crates/zproto/src/ascii/response/reply.rs diff --git a/src/ascii/setting.rs b/crates/zproto/src/ascii/setting.rs similarity index 100% rename from src/ascii/setting.rs rename to crates/zproto/src/ascii/setting.rs diff --git a/src/ascii/setting/data_types.rs b/crates/zproto/src/ascii/setting/data_types.rs similarity index 100% rename from src/ascii/setting/data_types.rs rename to crates/zproto/src/ascii/setting/data_types.rs diff --git a/src/ascii/setting/mod.inc b/crates/zproto/src/ascii/setting/mod.inc similarity index 100% rename from src/ascii/setting/mod.inc rename to crates/zproto/src/ascii/setting/mod.inc diff --git a/src/ascii/setting/private/v6_14.rs b/crates/zproto/src/ascii/setting/private/v6_14.rs similarity index 100% rename from src/ascii/setting/private/v6_14.rs rename to crates/zproto/src/ascii/setting/private/v6_14.rs diff --git a/src/ascii/setting/private/v6_15.rs b/crates/zproto/src/ascii/setting/private/v6_15.rs similarity index 100% rename from src/ascii/setting/private/v6_15.rs rename to crates/zproto/src/ascii/setting/private/v6_15.rs diff --git a/src/ascii/setting/private/v6_16.rs b/crates/zproto/src/ascii/setting/private/v6_16.rs similarity index 100% rename from src/ascii/setting/private/v6_16.rs rename to crates/zproto/src/ascii/setting/private/v6_16.rs diff --git a/src/ascii/setting/private/v6_17.rs b/crates/zproto/src/ascii/setting/private/v6_17.rs similarity index 100% rename from src/ascii/setting/private/v6_17.rs rename to crates/zproto/src/ascii/setting/private/v6_17.rs diff --git a/src/ascii/setting/private/v6_18.rs b/crates/zproto/src/ascii/setting/private/v6_18.rs similarity index 100% rename from src/ascii/setting/private/v6_18.rs rename to crates/zproto/src/ascii/setting/private/v6_18.rs diff --git a/src/ascii/setting/private/v6_19.rs b/crates/zproto/src/ascii/setting/private/v6_19.rs similarity index 100% rename from src/ascii/setting/private/v6_19.rs rename to crates/zproto/src/ascii/setting/private/v6_19.rs diff --git a/src/ascii/setting/private/v6_20.rs b/crates/zproto/src/ascii/setting/private/v6_20.rs similarity index 100% rename from src/ascii/setting/private/v6_20.rs rename to crates/zproto/src/ascii/setting/private/v6_20.rs diff --git a/src/ascii/setting/private/v6_21.rs b/crates/zproto/src/ascii/setting/private/v6_21.rs similarity index 100% rename from src/ascii/setting/private/v6_21.rs rename to crates/zproto/src/ascii/setting/private/v6_21.rs diff --git a/src/ascii/setting/private/v6_22.rs b/crates/zproto/src/ascii/setting/private/v6_22.rs similarity index 100% rename from src/ascii/setting/private/v6_22.rs rename to crates/zproto/src/ascii/setting/private/v6_22.rs diff --git a/src/ascii/setting/private/v6_23.rs b/crates/zproto/src/ascii/setting/private/v6_23.rs similarity index 100% rename from src/ascii/setting/private/v6_23.rs rename to crates/zproto/src/ascii/setting/private/v6_23.rs diff --git a/src/ascii/setting/private/v6_24.rs b/crates/zproto/src/ascii/setting/private/v6_24.rs similarity index 100% rename from src/ascii/setting/private/v6_24.rs rename to crates/zproto/src/ascii/setting/private/v6_24.rs diff --git a/src/ascii/setting/private/v6_25.rs b/crates/zproto/src/ascii/setting/private/v6_25.rs similarity index 100% rename from src/ascii/setting/private/v6_25.rs rename to crates/zproto/src/ascii/setting/private/v6_25.rs diff --git a/src/ascii/setting/private/v6_26.rs b/crates/zproto/src/ascii/setting/private/v6_26.rs similarity index 100% rename from src/ascii/setting/private/v6_26.rs rename to crates/zproto/src/ascii/setting/private/v6_26.rs diff --git a/src/ascii/setting/private/v6_27.rs b/crates/zproto/src/ascii/setting/private/v6_27.rs similarity index 100% rename from src/ascii/setting/private/v6_27.rs rename to crates/zproto/src/ascii/setting/private/v6_27.rs diff --git a/src/ascii/setting/private/v6_28.rs b/crates/zproto/src/ascii/setting/private/v6_28.rs similarity index 100% rename from src/ascii/setting/private/v6_28.rs rename to crates/zproto/src/ascii/setting/private/v6_28.rs diff --git a/src/ascii/setting/private/v6_29.rs b/crates/zproto/src/ascii/setting/private/v6_29.rs similarity index 100% rename from src/ascii/setting/private/v6_29.rs rename to crates/zproto/src/ascii/setting/private/v6_29.rs diff --git a/src/ascii/setting/private/v6_30.rs b/crates/zproto/src/ascii/setting/private/v6_30.rs similarity index 100% rename from src/ascii/setting/private/v6_30.rs rename to crates/zproto/src/ascii/setting/private/v6_30.rs diff --git a/src/ascii/setting/private/v6_31.rs b/crates/zproto/src/ascii/setting/private/v6_31.rs similarity index 100% rename from src/ascii/setting/private/v6_31.rs rename to crates/zproto/src/ascii/setting/private/v6_31.rs diff --git a/src/ascii/setting/private/v6_32.rs b/crates/zproto/src/ascii/setting/private/v6_32.rs similarity index 100% rename from src/ascii/setting/private/v6_32.rs rename to crates/zproto/src/ascii/setting/private/v6_32.rs diff --git a/src/ascii/setting/private/v7_01.rs b/crates/zproto/src/ascii/setting/private/v7_01.rs similarity index 100% rename from src/ascii/setting/private/v7_01.rs rename to crates/zproto/src/ascii/setting/private/v7_01.rs diff --git a/src/ascii/setting/private/v7_03.rs b/crates/zproto/src/ascii/setting/private/v7_03.rs similarity index 100% rename from src/ascii/setting/private/v7_03.rs rename to crates/zproto/src/ascii/setting/private/v7_03.rs diff --git a/src/ascii/setting/private/v7_05.rs b/crates/zproto/src/ascii/setting/private/v7_05.rs similarity index 100% rename from src/ascii/setting/private/v7_05.rs rename to crates/zproto/src/ascii/setting/private/v7_05.rs diff --git a/src/ascii/setting/private/v7_06.rs b/crates/zproto/src/ascii/setting/private/v7_06.rs similarity index 100% rename from src/ascii/setting/private/v7_06.rs rename to crates/zproto/src/ascii/setting/private/v7_06.rs diff --git a/src/ascii/setting/private/v7_07.rs b/crates/zproto/src/ascii/setting/private/v7_07.rs similarity index 100% rename from src/ascii/setting/private/v7_07.rs rename to crates/zproto/src/ascii/setting/private/v7_07.rs diff --git a/src/ascii/setting/private/v7_08.rs b/crates/zproto/src/ascii/setting/private/v7_08.rs similarity index 100% rename from src/ascii/setting/private/v7_08.rs rename to crates/zproto/src/ascii/setting/private/v7_08.rs diff --git a/src/ascii/setting/private/v7_09.rs b/crates/zproto/src/ascii/setting/private/v7_09.rs similarity index 100% rename from src/ascii/setting/private/v7_09.rs rename to crates/zproto/src/ascii/setting/private/v7_09.rs diff --git a/src/ascii/setting/private/v7_10.rs b/crates/zproto/src/ascii/setting/private/v7_10.rs similarity index 100% rename from src/ascii/setting/private/v7_10.rs rename to crates/zproto/src/ascii/setting/private/v7_10.rs diff --git a/src/ascii/setting/private/v7_11.rs b/crates/zproto/src/ascii/setting/private/v7_11.rs similarity index 100% rename from src/ascii/setting/private/v7_11.rs rename to crates/zproto/src/ascii/setting/private/v7_11.rs diff --git a/src/ascii/setting/private/v7_12.rs b/crates/zproto/src/ascii/setting/private/v7_12.rs similarity index 100% rename from src/ascii/setting/private/v7_12.rs rename to crates/zproto/src/ascii/setting/private/v7_12.rs diff --git a/src/ascii/setting/private/v7_13.rs b/crates/zproto/src/ascii/setting/private/v7_13.rs similarity index 100% rename from src/ascii/setting/private/v7_13.rs rename to crates/zproto/src/ascii/setting/private/v7_13.rs diff --git a/src/ascii/setting/private/v7_14.rs b/crates/zproto/src/ascii/setting/private/v7_14.rs similarity index 100% rename from src/ascii/setting/private/v7_14.rs rename to crates/zproto/src/ascii/setting/private/v7_14.rs diff --git a/src/ascii/setting/private/v7_15.rs b/crates/zproto/src/ascii/setting/private/v7_15.rs similarity index 100% rename from src/ascii/setting/private/v7_15.rs rename to crates/zproto/src/ascii/setting/private/v7_15.rs diff --git a/src/ascii/setting/private/v7_16.rs b/crates/zproto/src/ascii/setting/private/v7_16.rs similarity index 100% rename from src/ascii/setting/private/v7_16.rs rename to crates/zproto/src/ascii/setting/private/v7_16.rs diff --git a/src/ascii/setting/private/v7_17.rs b/crates/zproto/src/ascii/setting/private/v7_17.rs similarity index 100% rename from src/ascii/setting/private/v7_17.rs rename to crates/zproto/src/ascii/setting/private/v7_17.rs diff --git a/src/ascii/setting/private/v7_18.rs b/crates/zproto/src/ascii/setting/private/v7_18.rs similarity index 100% rename from src/ascii/setting/private/v7_18.rs rename to crates/zproto/src/ascii/setting/private/v7_18.rs diff --git a/src/ascii/setting/private/v7_19.rs b/crates/zproto/src/ascii/setting/private/v7_19.rs similarity index 100% rename from src/ascii/setting/private/v7_19.rs rename to crates/zproto/src/ascii/setting/private/v7_19.rs diff --git a/src/ascii/setting/private/v7_20.rs b/crates/zproto/src/ascii/setting/private/v7_20.rs similarity index 100% rename from src/ascii/setting/private/v7_20.rs rename to crates/zproto/src/ascii/setting/private/v7_20.rs diff --git a/src/ascii/setting/private/v7_21.rs b/crates/zproto/src/ascii/setting/private/v7_21.rs similarity index 100% rename from src/ascii/setting/private/v7_21.rs rename to crates/zproto/src/ascii/setting/private/v7_21.rs diff --git a/src/ascii/setting/private/v7_22.rs b/crates/zproto/src/ascii/setting/private/v7_22.rs similarity index 100% rename from src/ascii/setting/private/v7_22.rs rename to crates/zproto/src/ascii/setting/private/v7_22.rs diff --git a/src/ascii/setting/private/v7_23.rs b/crates/zproto/src/ascii/setting/private/v7_23.rs similarity index 100% rename from src/ascii/setting/private/v7_23.rs rename to crates/zproto/src/ascii/setting/private/v7_23.rs diff --git a/src/ascii/setting/private/v7_24.rs b/crates/zproto/src/ascii/setting/private/v7_24.rs similarity index 100% rename from src/ascii/setting/private/v7_24.rs rename to crates/zproto/src/ascii/setting/private/v7_24.rs diff --git a/src/ascii/setting/private/v7_25.rs b/crates/zproto/src/ascii/setting/private/v7_25.rs similarity index 100% rename from src/ascii/setting/private/v7_25.rs rename to crates/zproto/src/ascii/setting/private/v7_25.rs diff --git a/src/ascii/setting/private/v7_26.rs b/crates/zproto/src/ascii/setting/private/v7_26.rs similarity index 100% rename from src/ascii/setting/private/v7_26.rs rename to crates/zproto/src/ascii/setting/private/v7_26.rs diff --git a/src/ascii/setting/private/v7_27.rs b/crates/zproto/src/ascii/setting/private/v7_27.rs similarity index 100% rename from src/ascii/setting/private/v7_27.rs rename to crates/zproto/src/ascii/setting/private/v7_27.rs diff --git a/src/ascii/setting/private/v7_28.rs b/crates/zproto/src/ascii/setting/private/v7_28.rs similarity index 100% rename from src/ascii/setting/private/v7_28.rs rename to crates/zproto/src/ascii/setting/private/v7_28.rs diff --git a/src/ascii/setting/private/v7_29.rs b/crates/zproto/src/ascii/setting/private/v7_29.rs similarity index 100% rename from src/ascii/setting/private/v7_29.rs rename to crates/zproto/src/ascii/setting/private/v7_29.rs diff --git a/src/ascii/setting/private/v7_30.rs b/crates/zproto/src/ascii/setting/private/v7_30.rs similarity index 100% rename from src/ascii/setting/private/v7_30.rs rename to crates/zproto/src/ascii/setting/private/v7_30.rs diff --git a/src/ascii/setting/private/v7_31.rs b/crates/zproto/src/ascii/setting/private/v7_31.rs similarity index 100% rename from src/ascii/setting/private/v7_31.rs rename to crates/zproto/src/ascii/setting/private/v7_31.rs diff --git a/src/ascii/setting/private/v7_32.rs b/crates/zproto/src/ascii/setting/private/v7_32.rs similarity index 100% rename from src/ascii/setting/private/v7_32.rs rename to crates/zproto/src/ascii/setting/private/v7_32.rs diff --git a/src/ascii/setting/private/v7_33.rs b/crates/zproto/src/ascii/setting/private/v7_33.rs similarity index 100% rename from src/ascii/setting/private/v7_33.rs rename to crates/zproto/src/ascii/setting/private/v7_33.rs diff --git a/src/ascii/setting/private/v7_34.rs b/crates/zproto/src/ascii/setting/private/v7_34.rs similarity index 100% rename from src/ascii/setting/private/v7_34.rs rename to crates/zproto/src/ascii/setting/private/v7_34.rs diff --git a/src/ascii/setting/private/v7_35.rs b/crates/zproto/src/ascii/setting/private/v7_35.rs similarity index 100% rename from src/ascii/setting/private/v7_35.rs rename to crates/zproto/src/ascii/setting/private/v7_35.rs diff --git a/src/ascii/setting/private/v7_36.rs b/crates/zproto/src/ascii/setting/private/v7_36.rs similarity index 100% rename from src/ascii/setting/private/v7_36.rs rename to crates/zproto/src/ascii/setting/private/v7_36.rs diff --git a/src/ascii/setting/private/v7_37.rs b/crates/zproto/src/ascii/setting/private/v7_37.rs similarity index 100% rename from src/ascii/setting/private/v7_37.rs rename to crates/zproto/src/ascii/setting/private/v7_37.rs diff --git a/src/ascii/setting/private/v7_38.rs b/crates/zproto/src/ascii/setting/private/v7_38.rs similarity index 100% rename from src/ascii/setting/private/v7_38.rs rename to crates/zproto/src/ascii/setting/private/v7_38.rs diff --git a/src/ascii/setting/private/v7_39.rs b/crates/zproto/src/ascii/setting/private/v7_39.rs similarity index 100% rename from src/ascii/setting/private/v7_39.rs rename to crates/zproto/src/ascii/setting/private/v7_39.rs diff --git a/src/backend.rs b/crates/zproto/src/backend.rs similarity index 100% rename from src/backend.rs rename to crates/zproto/src/backend.rs diff --git a/src/binary.rs b/crates/zproto/src/binary.rs similarity index 100% rename from src/binary.rs rename to crates/zproto/src/binary.rs diff --git a/src/binary/command.rs b/crates/zproto/src/binary/command.rs similarity index 100% rename from src/binary/command.rs rename to crates/zproto/src/binary/command.rs diff --git a/src/binary/handlers.rs b/crates/zproto/src/binary/handlers.rs similarity index 100% rename from src/binary/handlers.rs rename to crates/zproto/src/binary/handlers.rs diff --git a/src/binary/port.rs b/crates/zproto/src/binary/port.rs similarity index 100% rename from src/binary/port.rs rename to crates/zproto/src/binary/port.rs diff --git a/src/binary/traits.rs b/crates/zproto/src/binary/traits.rs similarity index 100% rename from src/binary/traits.rs rename to crates/zproto/src/binary/traits.rs diff --git a/src/convert.rs b/crates/zproto/src/convert.rs similarity index 100% rename from src/convert.rs rename to crates/zproto/src/convert.rs diff --git a/src/error.rs b/crates/zproto/src/error.rs similarity index 100% rename from src/error.rs rename to crates/zproto/src/error.rs diff --git a/src/error/all.rs b/crates/zproto/src/error/all.rs similarity index 100% rename from src/error/all.rs rename to crates/zproto/src/error/all.rs diff --git a/src/error/ascii.rs b/crates/zproto/src/error/ascii.rs similarity index 100% rename from src/error/ascii.rs rename to crates/zproto/src/error/ascii.rs diff --git a/src/error/binary.rs b/crates/zproto/src/error/binary.rs similarity index 100% rename from src/error/binary.rs rename to crates/zproto/src/error/binary.rs diff --git a/src/lib.rs b/crates/zproto/src/lib.rs similarity index 100% rename from src/lib.rs rename to crates/zproto/src/lib.rs diff --git a/src/routine.rs b/crates/zproto/src/routine.rs similarity index 100% rename from src/routine.rs rename to crates/zproto/src/routine.rs diff --git a/src/routine/seq.rs b/crates/zproto/src/routine/seq.rs similarity index 100% rename from src/routine/seq.rs rename to crates/zproto/src/routine/seq.rs diff --git a/src/timeout_guard.rs b/crates/zproto/src/timeout_guard.rs similarity index 100% rename from src/timeout_guard.rs rename to crates/zproto/src/timeout_guard.rs diff --git a/test/binary/01-type-inference.rs b/crates/zproto/test/binary/01-type-inference.rs similarity index 100% rename from test/binary/01-type-inference.rs rename to crates/zproto/test/binary/01-type-inference.rs diff --git a/test/binary/01-type-inference.stderr b/crates/zproto/test/binary/01-type-inference.stderr similarity index 100% rename from test/binary/01-type-inference.stderr rename to crates/zproto/test/binary/01-type-inference.stderr diff --git a/test/binary/02-port-parameters.rs b/crates/zproto/test/binary/02-port-parameters.rs similarity index 100% rename from test/binary/02-port-parameters.rs rename to crates/zproto/test/binary/02-port-parameters.rs diff --git a/test/binary/02-port-parameters.stderr b/crates/zproto/test/binary/02-port-parameters.stderr similarity index 100% rename from test/binary/02-port-parameters.stderr rename to crates/zproto/test/binary/02-port-parameters.stderr diff --git a/test/binary/03-reply-data.rs b/crates/zproto/test/binary/03-reply-data.rs similarity index 100% rename from test/binary/03-reply-data.rs rename to crates/zproto/test/binary/03-reply-data.rs diff --git a/test/binary/03-reply-data.stderr b/crates/zproto/test/binary/03-reply-data.stderr similarity index 100% rename from test/binary/03-reply-data.stderr rename to crates/zproto/test/binary/03-reply-data.stderr