Introduce the `radicle-core` crate for housing data types that are at the core of the Radicle protocol. The initial data type being added is `RepoId`. To make the crate as lightweight as possible many of dependencies are optional and gated by feature flags. The crate is marked as `no_std` even though it unconditionally depends on `radicle-crypto`, which is *not* `no_std`. This is to invite refactoring of `radicle-crypto` to `no_std` at a later time. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| README.md | ||
README.md
radicle-cli-test
Test your CLI with the help of markdown descriptions.
Example
Test flows are described in markdown like this example:
# Echoing works
When I call echo, it answers:
```
$ echo "ohai"
ohai
```
Say this is placed in kind-echo.md, this is what the corresponding test case
would look like:
use std::path::Path;
use radicle_cli_test::TestFormula;
#[test]
fn kind_echo() {
TestFormula::new()
.file(Path::new("./kind-echo.md"))
.unwrap()
.run()
.unwrap();
}