Expose Object, Link, and Activity type values

This commit is contained in:
Aode (lion) 2022-03-31 11:11:59 -05:00
parent eba79ed4cc
commit e2aef84724
3 changed files with 8 additions and 9 deletions

View file

@ -1,7 +1,7 @@
[package]
name = "activitystreams"
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"
authors = ["asonix <asonix@asonix.dog>"]
repository = "https://git.asonix.dog/asonix/activitystreams"
@ -16,14 +16,10 @@ edition = "2021"
members = ["activitystreams-ext", "activitystreams-kinds"]
[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 = { version = "0.5.0-beta.1", features = [
"serde",
"serde-std",
"std",
] }
iri-string = { version = "0.5.0", features = ["serde", "serde-std", "std"] }
mime = "0.3"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

View file

@ -1,7 +1,7 @@
[package]
name = "activitystreams-kinds"
description = "Type-safe activitystreams 'type' values"
version = "0.2.0"
version = "0.2.1"
license = "GPL-3.0"
authors = ["asonix <asonix@asonix.dog>"]
repository = "https://git.asonix.dog/asonix/activitystreams"
@ -17,7 +17,7 @@ default = ["url"]
[dependencies]
serde = { version = "1", features = ["derive"] }
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]
anyhow = "1"

View file

@ -108,6 +108,7 @@ pub mod activity {
use crate::kind;
kind!(ActivityType, Activity);
kind!(AcceptType, Accept);
kind!(AddType, Add);
kind!(AnnounceType, Announce);
@ -175,6 +176,7 @@ pub mod link {
use crate::kind;
kind!(LinkType, Link);
kind!(MentionType, Mention);
}
@ -186,6 +188,7 @@ pub mod object {
use crate::kind;
kind!(ObjectType, Object);
kind!(ArticleType, Article);
kind!(AudioType, Audio);
kind!(DocumentType, Document);