Paper wallet for Hush, which you can use with no internet access while wearing a tinfoil hat inside of a Faraday cage.
https://hush.is
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
1 year ago | |
---|---|---|
.. | ||
src | 1 year ago | |
.cargo-checksum.json | 1 year ago | |
Cargo.toml | 1 year ago | |
README.md | 1 year ago |
README.md
Derive macros for the stdweb
crate
This crate currently defines a derive macro for stdweb
which allows you to define custom reference types outside
of stdweb
.
For example:
#[derive(Clone, Debug, PartialEq, Eq, ReferenceType)]
#[reference(instance_of = "Error")]
pub struct Error( Reference );
#[derive(Clone, Debug, PartialEq, Eq, ReferenceType)]
#[reference(instance_of = "TypeError")]
#[reference(subclass_of(Error))]
pub struct TypeError( Reference );
And then you can do:
// You can use `try_into` to cast a `Value` to your type.
let error: TypeError = js!( return new TypeError(); ).try_into().unwrap();
// You can also pass your type freely into the `js!` macro:
js!( console.log( @{error} ); );