-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
238 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
`synthez` changelog | ||
=================== | ||
|
||
All user visible changes to this project will be documented in this file. This project uses [Semantic Versioning 2.0.0]. | ||
|
||
|
||
|
||
|
||
## [0.1.0] · 2021-06-25 | ||
[0.1.0]: /../../tree/v0.1.0 | ||
|
||
### Initially implemented | ||
|
||
- `ParseAttrs` trait and derive macro for parsing `syn::Attribute`s in declarative way. | ||
- Primitive `ToTokens` derive macro supporting only `#[to_tokens(append(<method>))]` attribute. | ||
- `parse:attr::doc()`/`parse:attr::doc_string()` helpers for convenient parsing normalized Rust doc comments and `#[doc]` attributes. | ||
- `Spanning` wrapper for attaching `Span` to arbitrary types. | ||
- `Required` container for denoting `ParseAttrs` fields required to be provided. | ||
- `IntoSpan` coercion working for both `Span` and `Spanned` types at the same time. | ||
- `has::Attrs` trait abstracting `syn` types which contain `syn::Attribute`s. | ||
- Extensions: | ||
- `IdentExt` simplifying `syn::Ident` creation; | ||
- `DataExt` simplifying `syn::Data` fields usage; | ||
- `ParseBufferExt` providing batteries for parsing `syn::Ident` and `syn::punctuated`. | ||
|
||
|
||
|
||
|
||
|
||
[Semantic Versioning 2.0.0]: https://semver.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
Blue Oak Model License | ||
====================== | ||
|
||
Version 1.0.0 | ||
|
||
## Purpose | ||
|
||
This license gives everyone as much permission to work with | ||
this software as possible, while protecting contributors | ||
from liability. | ||
|
||
## Acceptance | ||
|
||
In order to receive this license, you must agree to its | ||
rules. The rules of this license are both obligations | ||
under that agreement and conditions to your license. | ||
You must not do anything with this software that triggers | ||
a rule that you cannot or will not follow. | ||
|
||
## Copyright | ||
|
||
Each contributor licenses you to do everything with this | ||
software that would otherwise infringe that contributor's | ||
copyright in it. | ||
|
||
## Notices | ||
|
||
You must ensure that everyone who gets a copy of | ||
any part of this software from you, with or without | ||
changes, also gets the text of this license or a link to | ||
<https://blueoakcouncil.org/license/1.0.0>. | ||
|
||
## Excuse | ||
|
||
If anyone notifies you in writing that you have not | ||
complied with [Notices](#notices), you can keep your | ||
license by taking all practical steps to comply within 30 | ||
days after the notice. If you do not do so, your license | ||
ends immediately. | ||
|
||
## Patent | ||
|
||
Each contributor licenses you to do everything with this | ||
software that would otherwise infringe any patent claims | ||
they can license or become able to license. | ||
|
||
## Reliability | ||
|
||
No contributor can revoke this license. | ||
|
||
## No Liability | ||
|
||
***As far as the law allows, this software comes as is, | ||
without any warranty or condition, and no contributor | ||
will be liable to anyone for any damages related to this | ||
software or this license, under any kind of legal claim.*** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,36 @@ | ||
synthez | ||
======= | ||
|
||
[![Latest version](https://img.shields.io/crates/v/synthez "Latest version")](https://crates.io/crates/synthez) | ||
[![Rust docs](https://docs.rs/synthez/badge.svg "Rust docs")](https://docs.rs/synthez) | ||
[![CI](https://github.com/arcana-rs/synthez/workflows/CI/badge.svg?branch=master "CI")](https://github.com/arcana-rs/synthez/actions?query=workflow%3ACI+branch%3Amaster) | ||
![Unsafe forbidden](https://img.shields.io/badge/unsafe-forbidden-success.svg "Unsafe forbidden") | ||
[![Rust 1.52+](https://img.shields.io/badge/rustc-1.52+-lightgray.svg "Rust 1.52+")](https://blog.rust-lang.org/2021/05/06/Rust-1.52.0.html) | ||
[![License](https://img.shields.io/crates/l/synthez "License")](https://github.com/arcana-rs/synthez/blob/master/LICENSE.md) | ||
|
||
[API Docs](https://docs.rs/synthez) | | ||
[Changelog](https://github.com/arcana-rs/synthez/blob/master/CHANGELOG.md) | ||
|
||
Steroids for [`syn`], [`quote`] and [`proc_macro2`] crates. | ||
|
||
|
||
|
||
|
||
## Usage | ||
|
||
See [API docs](https://docs.rs/synthez) for usage examples. | ||
|
||
|
||
|
||
|
||
## License | ||
|
||
This software is subject to the terms of the [Blue Oak Model License 1.0.0](https://github.com/instrumentisto/tracerr-rs/blob/master/LICENSE.md). If a copy of the [BlueOak-1.0.0](https://spdx.org/licenses/BlueOak-1.0.0.html) license was not distributed with this file, You can obtain one at <https://blueoakcouncil.org/license/1.0.0>. | ||
|
||
|
||
|
||
|
||
|
||
[`proc_macro2`]: https://docs.rs/proc_macro2 | ||
[`quote`]: https://docs.rs/quote | ||
[`syn`]: https://docs.rs/syn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
synthez-codegen | ||
=============== | ||
|
||
Internal codegen shim of [`synthez`] crate. | ||
|
||
DO NOT use it directly, use [`synthez`] crate instead. | ||
|
||
|
||
|
||
|
||
|
||
[`synthez`]: https://docs.rs/synthez |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
synthez-core | ||
============ | ||
|
||
Internal implementations of [`synthez`] crate. | ||
|
||
DO NOT use it directly, use [`synthez`] crate instead. | ||
|
||
|
||
|
||
|
||
|
||
[`synthez`]: https://docs.rs/synthez |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters