Skip to content

Commit bf8c08d

Browse files
committed
basic
1 parent edaec3d commit bf8c08d

20 files changed

+771
-19
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/target
2+
Cargo.lock

Cargo.toml

+5-19
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
1-
[package]
2-
name = "to_bytes"
3-
version = "0.1.0"
4-
description = "Serialize values into memory bytes"
5-
authors = ["MeowType", "Package <[email protected]>"]
6-
edition = "2018"
7-
license = "MIT"
8-
readme = "../README.md"
9-
repository = "https://github.com/MeowType/to_bytes"
10-
keywords = ["to_bytes", "bytes", "memory", "serialize"]
11-
12-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
13-
14-
[dependencies]
15-
to_bytes_derive = { version = "0.1", path = "../derive", optional = true }
16-
17-
[features]
18-
default = ["derive"]
19-
derive = ["to_bytes_derive"]
1+
[workspace]
2+
members = [
3+
"to_bytes",
4+
"derive",
5+
]

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 MeowType
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# to_bytes
2+

derive/Cargo.toml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[package]
2+
name = "to_bytes_derive"
3+
version = "0.1.0"
4+
description = "Serialize values into memory bytes"
5+
authors = ["MeowType", "Package <[email protected]>"]
6+
edition = "2018"
7+
license = "MIT"
8+
repository = "https://github.com/MeowType/to_bytes"
9+
10+
[lib]
11+
proc-macro = true
12+
13+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
14+
15+
[dependencies]
16+
proc-macro2 = "1.0"
17+
quote = "1.0"
18+
syn = { version = "1.0" }
19+
20+
[dev-dependencies]
21+
to_bytes = { path = "../to_bytes" }

0 commit comments

Comments
 (0)