mirror of
https://git.asonix.dog/asonix/activitystreams.git
synced 2024-11-22 03:40:59 +00:00
Expose Object, Link, and Activity type values
This commit is contained in:
parent
eba79ed4cc
commit
e2aef84724
3 changed files with 8 additions and 9 deletions
10
Cargo.toml
10
Cargo.toml
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "activitystreams"
|
name = "activitystreams"
|
||||||
description = "A set of core types and traits for activitystreams data"
|
description = "A set of core types and traits for activitystreams data"
|
||||||
version = "0.7.0-alpha.19"
|
version = "0.7.0-alpha.20"
|
||||||
license = "GPL-3.0"
|
license = "GPL-3.0"
|
||||||
authors = ["asonix <asonix@asonix.dog>"]
|
authors = ["asonix <asonix@asonix.dog>"]
|
||||||
repository = "https://git.asonix.dog/asonix/activitystreams"
|
repository = "https://git.asonix.dog/asonix/activitystreams"
|
||||||
|
@ -16,14 +16,10 @@ edition = "2021"
|
||||||
members = ["activitystreams-ext", "activitystreams-kinds"]
|
members = ["activitystreams-ext", "activitystreams-kinds"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
activitystreams-kinds = { version = "0.2.0", path = "./activitystreams-kinds/", default-features = false, features = [
|
activitystreams-kinds = { version = "0.2.1", path = "./activitystreams-kinds/", default-features = false, features = [
|
||||||
"iri-string",
|
"iri-string",
|
||||||
] }
|
] }
|
||||||
iri-string = { version = "0.5.0-beta.1", features = [
|
iri-string = { version = "0.5.0", features = ["serde", "serde-std", "std"] }
|
||||||
"serde",
|
|
||||||
"serde-std",
|
|
||||||
"std",
|
|
||||||
] }
|
|
||||||
mime = "0.3"
|
mime = "0.3"
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "activitystreams-kinds"
|
name = "activitystreams-kinds"
|
||||||
description = "Type-safe activitystreams 'type' values"
|
description = "Type-safe activitystreams 'type' values"
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
license = "GPL-3.0"
|
license = "GPL-3.0"
|
||||||
authors = ["asonix <asonix@asonix.dog>"]
|
authors = ["asonix <asonix@asonix.dog>"]
|
||||||
repository = "https://git.asonix.dog/asonix/activitystreams"
|
repository = "https://git.asonix.dog/asonix/activitystreams"
|
||||||
|
@ -17,7 +17,7 @@ default = ["url"]
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
url = { version = "2", optional = true }
|
url = { version = "2", optional = true }
|
||||||
iri-string = { version = "0.5.0-beta.1", optional = true }
|
iri-string = { version = "0.5.0", optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
anyhow = "1"
|
anyhow = "1"
|
||||||
|
|
|
@ -108,6 +108,7 @@ pub mod activity {
|
||||||
|
|
||||||
use crate::kind;
|
use crate::kind;
|
||||||
|
|
||||||
|
kind!(ActivityType, Activity);
|
||||||
kind!(AcceptType, Accept);
|
kind!(AcceptType, Accept);
|
||||||
kind!(AddType, Add);
|
kind!(AddType, Add);
|
||||||
kind!(AnnounceType, Announce);
|
kind!(AnnounceType, Announce);
|
||||||
|
@ -175,6 +176,7 @@ pub mod link {
|
||||||
|
|
||||||
use crate::kind;
|
use crate::kind;
|
||||||
|
|
||||||
|
kind!(LinkType, Link);
|
||||||
kind!(MentionType, Mention);
|
kind!(MentionType, Mention);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -186,6 +188,7 @@ pub mod object {
|
||||||
|
|
||||||
use crate::kind;
|
use crate::kind;
|
||||||
|
|
||||||
|
kind!(ObjectType, Object);
|
||||||
kind!(ArticleType, Article);
|
kind!(ArticleType, Article);
|
||||||
kind!(AudioType, Audio);
|
kind!(AudioType, Audio);
|
||||||
kind!(DocumentType, Document);
|
kind!(DocumentType, Document);
|
||||||
|
|
Loading…
Reference in a new issue