bin/decode_typed can run decode with a type and crate passed via environment variables.
Issue #9.
This commit is contained in:
parent
bee76d3668
commit
2b0ee72ceb
4 changed files with 60 additions and 8 deletions
|
|
@ -20,7 +20,6 @@ branch = "master"
|
|||
clap = "^2.29.0"
|
||||
derive-error = "^0.0.4"
|
||||
framed = { path = "../framed" }
|
||||
framed_test_type = { path = "../test_type" }
|
||||
|
||||
[features]
|
||||
default = ["typed"]
|
||||
|
|
|
|||
10
decode/README.md
Normal file
10
decode/README.md
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# `framed_decode`
|
||||
|
||||
TODO.
|
||||
|
||||
## framed-rs/bin/decode_typed
|
||||
|
||||
TODO.
|
||||
|
||||
Note: you must install [`jq`][jq] and have it on your path.
|
||||
[jq]: https://stedolan.github.io/jq/
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
// TODO: Generate this.
|
||||
|
||||
extern crate framed_test_type;
|
||||
use framed_test_type::Test as UserType;
|
||||
static USER_TYPE_NAME: &'static str = "framed_test_type::Test";
|
||||
|
|
@ -6,7 +6,7 @@ extern crate clap;
|
|||
extern crate derive_error;
|
||||
extern crate framed;
|
||||
|
||||
include!("dynamic.rs");
|
||||
include!(env!("FRAMED_DECODE_DYNAMIC_RS"));
|
||||
|
||||
mod error;
|
||||
use error::{Error, Result};
|
||||
|
|
|
|||
Loading…
Reference in a new issue