Update Cargo.toml, readme

This commit is contained in:
asonix 2020-03-11 11:21:58 -05:00
parent 9a8fd738f7
commit d13e8dc2d4
2 changed files with 4 additions and 7 deletions

View file

@ -1,7 +1,7 @@
[package] [package]
name = "activitystreams" name = "activitystreams"
description = "Activity Streams in Rust" description = "Activity Streams in Rust"
version = "0.4.0-alpha.1" version = "0.4.0-alpha.2"
license = "GPL-3.0" license = "GPL-3.0"
authors = ["asonix <asonix@asonix.dog>"] authors = ["asonix <asonix@asonix.dog>"]
repository = "https://git.asonix.dog/Aardwolf/activitystreams" repository = "https://git.asonix.dog/Aardwolf/activitystreams"

View file

@ -12,12 +12,12 @@ For basic use, add the following to your Cargo.toml
```toml ```toml
# Cargo.toml # Cargo.toml
activitystreams = "0.4.0-alpha.0" activitystreams = "0.4.0-alpha.2"
``` ```
And then use it in your project And then use it in your project
```rust ```rust
use activitystreams::object::Video; use activitystreams::object::streams::Video;
fn main() -> Result<(), Box<dyn std::error::Error>> { fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut v = Video::default(); let mut v = Video::default();
@ -125,10 +125,7 @@ And then in your project
```rust ```rust
use activitystreams::{ use activitystreams::{
context, context,
link::{ link::properties::LinkProperties,
properties::LinkProperties,
LinkExt,
},
Link, Link,
Object, Object,
PropRefs, PropRefs,