-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f7d5d7
commit e8ee477
Showing
10 changed files
with
747 additions
and
41 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[package] | ||
name = "toad-map" | ||
version = "0.0.0" | ||
edition = "2021" | ||
description = "Map / Dictionary trait that is no_std and heap-allocator-optional" | ||
authors = ["Orion Kindel <[email protected]>"] | ||
license = "MIT OR Apache-2.0" | ||
homepage = "https://github.com/clov-coffee/toad/toad" | ||
repository = "https://github.com/clov-coffee/toad/toad" | ||
readme = "README.md" | ||
keywords = ["coap", "iot", "networking", "no_std", "wasm"] | ||
categories = ["network-programming"] | ||
|
||
[badges] | ||
maintenance = { status = "actively-developed" } | ||
|
||
[features] | ||
default = ["std"] | ||
std = ["alloc", "toad-len/std"] | ||
alloc = ["toad-len/alloc"] | ||
test = [] | ||
docs = [] | ||
|
||
[dependencies] | ||
tinyvec = {version = "1.5", default_features = false, features = ["rustc_1_55"]} | ||
toad-len = {version = "0.1.1", default_features = false} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
extend = "../Makefile.toml" | ||
|
||
[tasks.bench] | ||
install_crate = "cargo-criterion" | ||
command = "cargo" | ||
args = ["criterion"] | ||
|
||
[tasks.flame] | ||
install_crate = "cargo-flamegraph" | ||
command = "cargo" | ||
args = ["flamegraph", "--bench", "profile", "--", "--bench"] | ||
|
||
[tasks.check-no-std] | ||
command = "cargo" | ||
args = ["check", "--no-default-features"] | ||
|
||
[tasks.check-alloc] | ||
command = "cargo" | ||
args = ["check", "--no-default-features", "--features", "alloc"] | ||
|
||
[tasks.ci] | ||
dependencies = ["test", "fmt-check", "clippy-check", "check-no-std", "check-alloc"] | ||
|
||
[tasks.tdd] | ||
install_crate = "cargo-watch" | ||
command = "cargo" | ||
args = [ "watch" | ||
, "--clear" | ||
, "--watch", "toad-TODO/src" | ||
, "--delay", "0" | ||
, "-x", "make --cwd toad-TODO -t test-quiet --loglevel error" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[![crates.io](https://img.shields.io/crates/v/toad-TODO.svg)](https://crates.io/crates/toad-TODO) | ||
[![docs.rs](https://docs.rs/toad-TODO/badge.svg)](https://docs.rs/toad-TODO/latest) | ||
![Maintenance](https://img.shields.io/badge/maintenance-activly--developed-brightgreen.svg) | ||
|
||
# toad-map | ||
|
||
This microcrate contains a `Map` trait that generalizes `HashMap` semantics | ||
to `std`, `alloc` and `no_std` platforms. | ||
|
||
## License | ||
|
||
Licensed under either of | ||
|
||
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or https://www.apache.org/licenses/LICENSE-2.0) | ||
* MIT license ([LICENSE-MIT](LICENSE-MIT) or https://opensource.org/licenses/MIT) | ||
|
||
at your option. | ||
|
||
### Contribution | ||
|
||
Unless you explicitly state otherwise, any contribution intentionally | ||
submitted for inclusion in the work by you, as defined in the Apache-2.0 | ||
license, shall be dual licensed as above, without any additional terms or | ||
conditions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[![crates.io](https://img.shields.io/crates/v/toad-TODO.svg)](https://crates.io/crates/toad-TODO) | ||
[![docs.rs](https://docs.rs/toad-TODO/badge.svg)](https://docs.rs/toad-TODO/latest) | ||
{{badges}} | ||
|
||
# {{crate}} | ||
|
||
{{readme}} | ||
|
||
## License | ||
|
||
Licensed under either of | ||
|
||
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or https://www.apache.org/licenses/LICENSE-2.0) | ||
* MIT license ([LICENSE-MIT](LICENSE-MIT) or https://opensource.org/licenses/MIT) | ||
|
||
at your option. | ||
|
||
### Contribution | ||
|
||
Unless you explicitly state otherwise, any contribution intentionally | ||
submitted for inclusion in the work by you, as defined in the Apache-2.0 | ||
license, shall be dual licensed as above, without any additional terms or | ||
conditions. |
Oops, something went wrong.