commit 96e9ad61bffdfe3d55dfe2da2581773b7bdee5d6 Author: asonix Date: Wed May 13 22:54:50 2020 -0500 Hmmm... diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..96ef6c0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/target +Cargo.lock diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..d62168e --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,15 @@ +[package] +name = "activitystreams-new" +version = "0.1.0" +authors = ["asonix "] +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +activitystreams = { version = "0.6.1", default-features = false, features = ["kinds","primitives"] } +serde = { version = "1.0", features = ["derive"] } +serde_json = "1.0" + +[dev-dependencies] +anyhow = "1.0" diff --git a/examples/basic.rs b/examples/basic.rs new file mode 100644 index 0000000..3d28669 --- /dev/null +++ b/examples/basic.rs @@ -0,0 +1,36 @@ +use activitystreams_new::{ + context, + object::{ApObject, Video}, + primitives::{XsdAnyUri, XsdString}, +}; + +fn main() -> Result<(), Box> { + let mut v: ApObject