docs.rs failed to build simple-bind-0.1.6
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
simple-bind-0.1.5
simple-bind: one-line non-exhaustive binds in Rust
Nightly-only crate.
// Here's a brief example that demonstrates how simple-bind works.
extern crate simple_bind;
use bind;
Setup
Use of this crate uses the unstable proc_macro
API, so it requires nightly and a few feature gates.
Enable nightly on your repository:
rustup override set nightly
Add this line to your cargo.toml
:
[]
= "0.1.5"
To your main module file (lib.rs
or main.rs
), add:
extern crate simple_bind;
Then wherever you want to use the macro, use normal imports (i.e. not #[macro_use]
):
use bind;
Examples
Issues
This implementation just covers cases I've run in to, and is not exhaustive to all possible binds. If you find a problem, feel free to submit an issue or a PR!