Last active
May 28, 2021 09:30
-
-
Save ranraj/c962ab799a8921f1538de2674e5d2a87 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "oci-hitter" | |
version = "0.1.0" | |
authors = ["ranjithraj.d <ranjithraj.d@gmail.com>"] | |
edition = "2018" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
log = "0.4.14" | |
xml-schema = "0.0.7" | |
xml-rs = "0.8.3" | |
xml-schema-derive = "0.0.7" | |
yaserde = "0.4.3" | |
yaserde_derive = "0.4.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oci-hitter on master [?] is 📦 v0.1.0 via 🦀 v1.43.1 | |
❯ cargo run | |
Compiling oci-hitter v0.1.0 (/Users/randhana/rspace/learn/rust/oci_ruster/oci-hitter) | |
error: proc-macro derive panicked | |
--> src/main.rs:8:17 | |
| | |
8 | #[derive(Debug, XmlSchema)] | |
| ^^^^^^^^^ | |
| | |
= help: message: No such file or directory (os error 2) | |
error: aborting due to previous error | |
error: could not compile `oci-hitter`. | |
To learn more, run the command again with --verbose. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[macro_use] | |
extern crate yaserde_derive; | |
use std::io::prelude::*; | |
use xml_schema_derive::XmlSchema; | |
use yaserde::{YaDeserialize, YaSerialize}; | |
#[derive(Debug, XmlSchema)] | |
#[xml_schema(source = "path_to_schema.xsd", target_prefix = "my_prefix")] | |
struct MySchema; | |
fn main() {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment