Skip to content

Commit

Permalink
WIP: Prepare for initial 1.0 alpha version
Browse files Browse the repository at this point in the history
We would like to release a `v1.0-alpha` that contains only the parsing
code and error types.

- Delete everything from the public API except `parse` and `error`.
- Make the `error` module private
- Keep the re-export of all error types at crate root
- Bump the version number
- Add a changelog entry (TODO)
- Update the lock files
  • Loading branch information
tcharding committed Feb 25, 2025
1 parent 3dee66b commit aabe779
Show file tree
Hide file tree
Showing 24 changed files with 21 additions and 2,673 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.0.0-alpha.0 - 2025-02-24

- TODO: Write changelog.

# 0.3.0 - 2024-09-18

- Re-implement `HexWriter` [#113](https://github.com/rust-bitcoin/hex-conservative/pull/113)
Expand Down
64 changes: 1 addition & 63 deletions Cargo-minimal.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
# It is not intended for manual editing.
version = 3

[[package]]
name = "arrayvec"
version = "0.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6"

[[package]]
name = "dtoa"
version = "0.4.0"
Expand All @@ -16,59 +10,18 @@ checksum = "5edd69c67b2f8e0911629b7e6b8a34cb3956613cd7c6e6414966dee349c2db4f"

[[package]]
name = "hex-conservative"
version = "0.3.0"
version = "1.0.0-alpha.0"
dependencies = [
"arrayvec",
"serde",
"serde_json",
]

[[package]]
name = "hex-fuzz"
version = "0.0.1"
dependencies = [
"hex-conservative",
"honggfuzz",
]

[[package]]
name = "honggfuzz"
version = "0.5.56"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7c76b6234c13c9ea73946d1379d33186151148e0da231506b964b44f3d023505"
dependencies = [
"lazy_static",
"memmap2",
"rustc_version",
]

[[package]]
name = "itoa"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "91fd9dc2c587067de817fec4ad355e3818c3d893a78cab32a0a474c7a15bb8d5"

[[package]]
name = "lazy_static"
version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"

[[package]]
name = "libc"
version = "0.2.143"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "edc207893e85c5d6be840e969b496b53d94cec8be2d501b214f50daa97fa8024"

[[package]]
name = "memmap2"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "deaba38d7abf1d4cca21cc89e932e542ba2b9258664d2a9ef0e61512039c9375"
dependencies = [
"libc",
]

[[package]]
name = "num-traits"
version = "0.1.32"
Expand All @@ -93,21 +46,6 @@ dependencies = [
"proc-macro2",
]

[[package]]
name = "rustc_version"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366"
dependencies = [
"semver",
]

[[package]]
name = "semver"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "76b5842e81eb9bbea19276a9dbbda22ac042532f390a67ab08b895617978abf3"

[[package]]
name = "serde"
version = "1.0.156"
Expand Down
64 changes: 1 addition & 63 deletions Cargo-recent.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,73 +2,26 @@
# It is not intended for manual editing.
version = 3

[[package]]
name = "arrayvec"
version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50"

[[package]]
name = "hex-conservative"
version = "0.3.0"
version = "1.0.0-alpha.0"
dependencies = [
"arrayvec",
"serde",
"serde_json",
]

[[package]]
name = "hex-fuzz"
version = "0.0.1"
dependencies = [
"hex-conservative",
"honggfuzz",
]

[[package]]
name = "honggfuzz"
version = "0.5.56"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7c76b6234c13c9ea73946d1379d33186151148e0da231506b964b44f3d023505"
dependencies = [
"lazy_static",
"memmap2",
"rustc_version",
]

[[package]]
name = "itoa"
version = "1.0.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b"

[[package]]
name = "lazy_static"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"

[[package]]
name = "libc"
version = "0.2.158"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439"

[[package]]
name = "memchr"
version = "2.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"

[[package]]
name = "memmap2"
version = "0.9.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd3f7eed9d3848f8b98834af67102b720745c4ec028fcd0aa0239277e7de374f"
dependencies = [
"libc",
]

[[package]]
name = "proc-macro2"
version = "1.0.86"
Expand All @@ -87,27 +40,12 @@ dependencies = [
"proc-macro2",
]

[[package]]
name = "rustc_version"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
dependencies = [
"semver",
]

[[package]]
name = "ryu"
version = "1.0.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f"

[[package]]
name = "semver"
version = "1.0.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b"

[[package]]
name = "serde"
version = "1.0.210"
Expand Down
16 changes: 1 addition & 15 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hex-conservative"
version = "0.3.0"
version = "1.0.0-alpha.0"
authors = ["Martin Habovštiak <[email protected]>", "Andrew Poelstra <[email protected]>"]
license = "CC0-1.0"
repository = "https://github.com/rust-bitcoin/hex-conservative"
Expand All @@ -17,29 +17,15 @@ exclude = ["tests", "contrib"]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[workspace]
members = ["fuzz"]

[features]
default = ["std"]
std = ["alloc"]
alloc = []

[dependencies]
arrayvec = { version = "0.7.2", default-features = false }
serde = { version = "1.0", default-features = false, optional = true }


[dev-dependencies]
serde = { version = "1.0.156", features = ["derive"] }
serde_json = "1.0"

[[example]]
name = "hexy"

[[example]]
name = "wrap_array"

[[example]]
name = "serde"
required-features = ["std", "serde"]
2 changes: 1 addition & 1 deletion contrib/test_vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ FEATURES_WITH_STD="serde"
FEATURES_WITHOUT_STD="alloc serde"

# Run these examples.
EXAMPLES="hexy:std wrap_array:std serde:std,serde"
EXAMPLES=""
72 changes: 0 additions & 72 deletions examples/hexy.rs

This file was deleted.

29 changes: 0 additions & 29 deletions examples/serde.rs

This file was deleted.

Loading

0 comments on commit aabe779

Please sign in to comment.