Skip to content

Commit 13ebebd

Browse files
authored
Merge pull request #4 from hashmismatch/prep_0_1_0
preparing for 0.1.0
2 parents 9a3bd49 + 4663e11 commit 13ebebd

File tree

7 files changed

+25
-14
lines changed

7 files changed

+25
-14
lines changed

Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ members = [
55
"packed_struct_tests/",
66
"packed_struct_examples/"
77
]
8+
9+
[patch.crates-io]
10+
packed_struct = { path="./packed_struct" }
11+
packed_struct_codegen = { path="./packed_struct_codegen" }

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Bit-level packing and unpacking for Rust
33

44
[![Build Status](https://travis-ci.org/hashmismatch/packed_struct.rs.svg?branch=master)](https://travis-ci.org/hashmismatch/packed_struct.rs)
55

6+
[![Documentation](https://docs.rs/packed_struct/badge.svg)](https://docs.rs/packed_struct)
7+
68
## Introduction
79

810
Packing and unpacking bit-level structures is usually a programming tasks that needlessly reinvents the wheel. This library provides
@@ -26,8 +28,8 @@ provide safe packing, unpacking and runtime debugging formatters with per-field
2628

2729
```toml
2830
[dependencies]
29-
packed_struct = { git = "https://github.com/hashmismatch/packed_struct.rs" }
30-
packed_struct_codegen = { git = "https://github.com/hashmismatch/packed_struct.rs" }
31+
packed_struct = "^0.1.0"
32+
packed_struct_codegen = "^0.1.0"
3133
```
3234
### Including the library and the code generator
3335

packed_struct/Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "packed_struct"
33
description = "Binary-level structure packing and unpacking generator"
4+
repository = "https://github.com/hashmismatch/packed_struct.rs"
45
version = "0.1.0"
56
authors = ["Rudi Benkovic <[email protected]>"]
67
build = "build.rs"
@@ -19,4 +20,4 @@ std = []
1920
core_collections = []
2021

2122
[dev-dependencies]
22-
packed_struct_codegen = {path="../packed_struct_codegen"}
23+
packed_struct_codegen = "^0.1.0"

packed_struct/src/lib.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
//!
44
//! [![Build Status](https://travis-ci.org/hashmismatch/packed_struct.rs.svg?branch=master)](https://travis-ci.org/hashmismatch/packed_struct.rs)
55
//!
6+
//! [![Documentation](https://docs.rs/packed_struct/badge.svg)](https://docs.rs/packed_struct)
7+
//!
68
//! # Introduction
79
//!
810
//! Packing and unpacking bit-level structures is usually a programming tasks that needlessly reinvents the wheel. This library provides
@@ -26,8 +28,8 @@
2628
//!
2729
//! ```toml
2830
//! [dependencies]
29-
//! packed_struct = { git = "https://github.com/hashmismatch/packed_struct.rs" }
30-
//! packed_struct_codegen = { git = "https://github.com/hashmismatch/packed_struct.rs" }
31+
//! packed_struct = "^0.1.0"
32+
//! packed_struct_codegen = "^0.1.0"
3133
//! ```
3234
//! ## Including the library and the code generator
3335
//!

packed_struct_codegen/Cargo.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
[package]
22
name = "packed_struct_codegen"
3+
description = "This crate implements the code generation for the packed_struct library."
4+
repository = "https://github.com/hashmismatch/packed_struct.rs"
35
version = "0.1.0"
6+
license = "MIT OR Apache-2.0"
47
authors = ["Rudi Benkovic <[email protected]>"]
58

69
[dependencies]
710
quote = "^0.3.12"
11+
packed_struct = { version = "^0.1.0", default-features = false }
812

913
[dependencies.syn]
1014
version = "^0.11.4"
1115
features = ["full", "parsing", "printing"]
1216

13-
[dependencies.packed_struct]
14-
path = "../packed_struct/"
15-
default-features = false
16-
1717
[lib]
1818
proc-macro = true
1919

2020
[features]
2121
default = ["std"]
2222
std = []
23-
core_collections = []
23+
core_collections = []

packed_struct_examples/Cargo.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
name = "packed_struct_examples"
33
version = "0.1.0"
44
authors = ["Rudi Benkovic <[email protected]>"]
5+
publish = false
56

67
[dependencies]
7-
packed_struct = { path = "../packed_struct/" }
8-
packed_struct_codegen = { path = "../packed_struct_codegen/" }
8+
packed_struct = "^0.1.0"
9+
packed_struct_codegen = "^0.1.0"

packed_struct_tests/Cargo.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
name = "packed_struct_tests"
33
version = "0.1.0"
44
authors = ["Rudi Benkovic <[email protected]>"]
5+
publish = false
56

67
[dependencies]
7-
packed_struct = { path = "../packed_struct/" }
8-
packed_struct_codegen = { path = "../packed_struct_codegen/" }
8+
packed_struct = "^0.1.0"
9+
packed_struct_codegen = "^0.1.0"

0 commit comments

Comments
 (0)