Skip to content

Commit

Permalink
Releasing 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wafflespeanut committed Jun 12, 2019
1 parent 1a6d4aa commit c5f498c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
5 changes: 5 additions & 0 deletions macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name = "paperclip-macros"
version = "0.1.0"
authors = ["Ravi Shankar <[email protected]>"]
edition = "2018"
description = "Macros for paperclip OpenAPI codegen"
documentation = "https://paperclip.waffles.space/paperclip_macros"
license = "MIT OR Apache-2.0"
homepage = "https://github.com/wafflespeanut/paperclip"
repository = "https://github.com/wafflespeanut/paperclip"

[lib]
proc-macro = true
Expand Down
7 changes: 6 additions & 1 deletion macros/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
//! Convenience macros for [paperclip](https://github.com/wafflespeanut/paperclip).
//!
//! You shouldn't need to depend on this, because the attributes here are
//! already exposed by paperclip.
#![feature(proc_macro_diagnostic)]
#![recursion_limit = "512"]

Expand All @@ -14,7 +19,7 @@ fn call_site_error_with_msg(msg: &str) -> TokenStream {

/// Converts your struct to support deserializing from an OpenAPI v2
/// [Schema](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#schemaObject)
/// object. This adds the necessary fields (in addition to your own fields) and implements the
/// object ([example](https://paperclip.waffles.space/paperclip/v2/)). This adds the necessary fields (in addition to your own fields) and implements the
/// `Schema` trait for parsing and codegen.
#[proc_macro_attribute]
pub fn api_v2_schema(_attr: TokenStream, input: TokenStream) -> TokenStream {
Expand Down
9 changes: 8 additions & 1 deletion openapi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ name = "paperclip"
version = "0.1.0"
authors = ["Ravi Shankar <[email protected]>"]
edition = "2018"
description = "WIP OpenAPI codegen"
documentation = "https://paperclip.waffles.space/paperclip"
keywords = ["openapi", "api", "swagger", "http", "web"]
license = "MIT OR Apache-2.0"
homepage = "https://github.com/wafflespeanut/paperclip"
repository = "https://github.com/wafflespeanut/paperclip"
readme = "../README.md"

[dependencies]
failure = "0.1.5"
Expand All @@ -11,7 +18,7 @@ heck = { version = "0.3.1", optional = true }
itertools = "0.8.0"
lazy_static = "1.3.0"
log = "0.4.6"
paperclip-macros = { path = "../macros" }
paperclip-macros = { path = "../macros", version = "0.1.0" }
parking_lot = { version = "0.8.0" }
quote = { version = "0.6.12", optional = true }
regex = "1.1.6"
Expand Down

0 comments on commit c5f498c

Please sign in to comment.