Update a couple invalid uses of box types

This commit is contained in:
asonix 2020-04-02 09:50:53 -05:00
parent b8e4e175cf
commit 7213c7966f
4 changed files with 14 additions and 27 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.5.0-alpha.12" version = "0.5.0-alpha.13"
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

@ -9,7 +9,7 @@ __A set of Traits and Types that make up the ActivityStreams and ActivityPub spe
First, add ActivityStreams to your dependencies First, add ActivityStreams to your dependencies
```toml ```toml
activitystreams = "0.5.0-alpha.12" activitystreams = "0.5.0-alpha.13"
``` ```
### Types ### Types
@ -177,7 +177,7 @@ There are a number of features that can be disabled in this crate. By default, e
enabled. enabled.
```toml ```toml
activitystreams = { version = "0.5.0-alpha.12", default-features = "false", features = ["derive"] } activitystreams = { version = "0.5.0-alpha.13", default-features = "false", features = ["derive"] }
``` ```
| feature | what you get | | feature | what you get |

View file

@ -25,7 +25,7 @@
//! use activitystreams::{ //! use activitystreams::{
//! collection::{ //! collection::{
//! properties::CollectionProperties, //! properties::CollectionProperties,
//! Collection, CollectionBox, //! Collection,
//! }, //! },
//! ext::Ext, //! ext::Ext,
//! object::{ //! object::{
@ -67,13 +67,7 @@
//! # fn main() {} //! # fn main() {}
//! ``` //! ```
use crate::{ use crate::{primitives::*, properties, BaseBox};
collection::{CollectionBox, CollectionPageBox},
link::LinkBox,
object::ObjectBox,
primitives::*,
properties,
};
properties! { properties! {
Collection { Collection {
@ -96,8 +90,7 @@ properties! {
], ],
types [ types [
XsdString, XsdString,
ObjectBox, BaseBox,
LinkBox,
], ],
required, required,
}, },
@ -129,8 +122,7 @@ properties! {
], ],
types [ types [
XsdAnyUri, XsdAnyUri,
LinkBox, BaseBox,
CollectionPageBox,
], ],
functional, functional,
}, },
@ -144,8 +136,7 @@ properties! {
], ],
types [ types [
XsdAnyUri, XsdAnyUri,
LinkBox, BaseBox,
CollectionPageBox,
], ],
functional, functional,
}, },
@ -159,8 +150,7 @@ properties! {
], ],
types [ types [
XsdAnyUri, XsdAnyUri,
LinkBox, BaseBox,
CollectionPageBox,
], ],
}, },
} }
@ -182,8 +172,7 @@ properties! {
], ],
types [ types [
XsdAnyUri, XsdAnyUri,
LinkBox, BaseBox,
CollectionBox,
], ],
functional, functional,
}, },
@ -197,8 +186,7 @@ properties! {
], ],
types [ types [
XsdAnyUri, XsdAnyUri,
LinkBox, BaseBox,
CollectionPageBox,
], ],
functional, functional,
}, },
@ -212,8 +200,7 @@ properties! {
], ],
types [ types [
XsdAnyUri, XsdAnyUri,
LinkBox, BaseBox,
CollectionPageBox,
], ],
functional, functional,
}, },

View file

@ -25,7 +25,7 @@
//! //!
//! First, add ActivityStreams to your dependencies //! First, add ActivityStreams to your dependencies
//! ```toml //! ```toml
//! activitystreams = "0.5.0-alpha.12" //! activitystreams = "0.5.0-alpha.13"
//! ``` //! ```
//! //!
//! ### Types //! ### Types
@ -209,7 +209,7 @@
//! enabled. //! enabled.
//! //!
//! ```toml //! ```toml
//! activitystreams = { version = "0.5.0-alpha.12", default-features = "false", features = ["derive"] } //! activitystreams = { version = "0.5.0-alpha.13", default-features = "false", features = ["derive"] }
//! ``` //! ```
//! //!
//! | feature | what you get | //! | feature | what you get |