docs.rs failed to build rutie-serde-0.1.0
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:
rutie-serde-0.3.0
Usage example:
Create a new rust crate and make sure to specify crate-type to be "dylib".
Also add rutie
, rutie-serde
, serde
and possibly serde_derive
as a dependency.
[]
= "2018"
[]
= ["dylib"]
= "ruby_rust_demo"
[]
= "0.5.2"
= { = "/Users/andriidmytrenko/dev/rust/rutie-serde" }
= "1.0"
= "1.0"
The usage is very similar to how you would use rutie
on it's own, but instead of calling
rutie_methods!
macro, you call rutie_serde_methods!
.
This macro takes care of deserializing arguments and serializing return values.
It also captures all panics inside those methods and raises them as an exception in ruby.
use ;
use rutie_serde_methods;
use ;
class!;
rutie_serde_methods!;
pub extern "C"