mirror of
https://git.asonix.dog/asonix/activitystreams.git
synced 2024-11-25 13:21:00 +00:00
Update Cargo.toml, readme
This commit is contained in:
parent
9a8fd738f7
commit
d13e8dc2d4
2 changed files with 4 additions and 7 deletions
|
@ -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"
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue