mirror of
https://git.asonix.dog/asonix/activitystreams.git
synced 2024-11-22 03:40:59 +00:00
Re-export kind macro, url functions
This commit is contained in:
parent
dff8fbbe59
commit
bd532fe4d2
1 changed files with 1 additions and 16 deletions
17
src/lib.rs
17
src/lib.rs
|
@ -312,22 +312,7 @@ pub extern crate chrono;
|
||||||
pub extern crate mime;
|
pub extern crate mime;
|
||||||
pub extern crate url;
|
pub extern crate url;
|
||||||
|
|
||||||
/// Returns the `https://www.w3.org/ns/activitystreams` Url
|
pub use activitystreams_kinds::{context, kind, public, security};
|
||||||
pub fn context() -> url::Url {
|
|
||||||
"https://www.w3.org/ns/activitystreams".parse().unwrap()
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns the `https://www.w3.org/ns/activitystreams#Public` Url
|
|
||||||
pub fn public() -> url::Url {
|
|
||||||
"https://www.w3.org/ns/activitystreams#Public"
|
|
||||||
.parse()
|
|
||||||
.unwrap()
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns the `https://w3id.org/security/v1` Url
|
|
||||||
pub fn security() -> url::Url {
|
|
||||||
"https://w3id.org/security/v1".parse().unwrap()
|
|
||||||
}
|
|
||||||
|
|
||||||
pub mod prelude {
|
pub mod prelude {
|
||||||
//! Extension traits that provide the majority of the helper methods of the crate
|
//! Extension traits that provide the majority of the helper methods of the crate
|
||||||
|
|
Loading…
Reference in a new issue