1
0
mirror of https://github.com/danog/strum.git synced 2024-11-26 20:14:40 +01:00
Commit Graph

48 Commits

Author SHA1 Message Date
Peter Glotfelty
5272fcea91 Tweak docs to format correctly and update crates to the newest version 2021-11-16 22:24:17 -08:00
Peter Glotfelty
f50fc72165
Update README.md
Fix a typo in the readme
2021-10-14 09:12:09 -07:00
Peter Glotfelty
08583fcb11
Make changes necessary for version 0.22 (#181)
* Make changes necessary for version 0.22

* Update changelog

Co-authored-by: Peter Glotfelty <peter@glotfelty.us>
2021-10-10 20:47:24 -07:00
Peter Glotfelty
07f9fe30e2
ToString is deprecated in favor of display. (#180)
* ToString is deprecated in favor of display.

* Remove doc(hidden)

* Remove references to `ToString` macro

Co-authored-by: Peter Glotfelty <peter@glotfelty.us>
2021-10-09 15:03:33 -07:00
Peter Glotfelty
c5a4b5e932
Update docs for 0.21 (#163)
Co-authored-by: Peter Glotfelty <peter@glotfelty.us>
2021-06-01 18:32:56 -07:00
Peter Glotfelty
c050dbd610
Update msrv because of heck. (#150) 2021-02-21 12:54:28 -08:00
Amrit Rathie
fb2f1b25ae
docs: Minor version in README docs.rs links (#148)
Use semver minor version rather than patch version in README.

Since doc.rs can resolve crate versions just like `cargo`, this will make the links point to the latest
version of the documentation.
2021-02-13 17:39:41 -08:00
Peter Glotfelty 🚀
96ee0a9a30 Updated changelog for strum 0.20 2020-11-21 20:13:44 +00:00
Peter Glotfelty 🚀
441316121b Updated changelog and readme with new version as well as tweaked docs slightly. 2020-10-07 05:52:12 +00:00
Peter Glotfelty
1d2778842b
Re-Enable Travis via travis.com (#112)
* Enable travis

* add build.r to re-enable try_from
2020-09-17 11:21:41 -07:00
Jonas Platte
b517f232aa
Update strum to Rust edition 2018 (#110)
* Set all crates to edition 2018

* Remove redundant imports

* Remove extern crate declarations for cargo dependencies
2020-09-17 11:21:21 -07:00
Sean Stangl
a11862cebb
Update README.md with most recent strum version (#102)
The README.md hardcoded the version `0.18.0` in the `Cargo.toml` description. This changes it to `0.19` without the patch version, ensuring that it will be accurate until the next minor release.
2020-08-03 14:05:09 -07:00
root
fd96b62516 updated changelog 2020-03-02 00:01:53 +00:00
Peter Glotfelty
98b41a5354 Fixed an issue with EnumIter overflowing 2019-12-20 02:28:30 +00:00
Peter Glotfelty
6ba428fd1a Updating readme to reflect new version 2019-12-19 23:18:17 +00:00
Cedric Hutchings
a94c8b0ce1 Replace 'variantes' with 'variants' in README.MD (#79) 2019-12-12 10:54:32 -08:00
Peter Glotfelty
9310855c82
Refactoring code and updating syn + quote (#71)
* Upgrading Syn and Quote to 1.0 and performing refactoring of helpers

* added newlines at the end of some files

* Did additional refactoring and added helpful trait methods to improve readability

* Shortened README and moved content to the wiki

* Updated README and changelog

* ran cargo fmt
2019-09-18 11:24:14 -07:00
tcharding
efed58502a Update attribute docs for strum_discriminants
Currently the README does not mention that extra attributes may be
passed to `#[strum_discriminants()]` and that these will be added as
attributes on the generated enum.  This is a cool feature, we should
document it.
2019-08-16 11:55:16 -07:00
Pascal Hertleif
96daaf4021 Add EnumVariantNames (#56)
* Add `EnumVariantNames`

This derive adds a static `variants()` methods yielding the names of
the enum variants. This happens to be exactly what clap [wants][1], and
is the last puzzle piece to use strum with clap/structopt.

[1]: https://docs.rs/clap/2.33.0/clap/macro.arg_enum.html

* Expand readme section for `EnumVariantNames`

* Return slice instead of array

This reduces the risk of breaking the public API by accident when adding
a new variant.

* Fix typo in Readme

* Add generic doc comment to `variants()` method

* Add test case using `variants` in clap/structopt
2019-07-15 10:06:33 -07:00
Peter Glotfelty
970b5cec40
Macro renames (#46)
* Updating the README

* Did lots of updates for the documentation

* Improving formatting in a few places

* Consolidated docs to make it easier to keep up to date

* Updating workspace

* Revved version in docs
2019-03-26 20:44:39 -07:00
Peter Glotfelty
68d7fba35b
Ran rustfmt on the whole tree and added a note about compatibility (#44)
* Ran rustfmt on the whole tree and added a note about compatibility

* Removing a doc-comment
2019-03-03 23:27:59 -08:00
Peter Glotfelty 🚀
e79a6fea80 Updated documents 2018-12-24 08:58:14 -08:00
Peter Glotfelty 🚀
cb3a611b0e Updating one little mistake in the readme 2018-12-05 11:54:09 -08:00
Peter Glotfelty 🚀
c22c8ca7a9 Updated docs and revved version numbers 2018-12-05 11:52:34 -08:00
Evgeniy Dushistov
e040bf4050 feature: add enum count macros (#37)
* feature: add enum count macros

fix #15

* add docs for EnumCount
2018-11-05 10:36:09 -08:00
Azriel Hoh
1c00f6cfa5 Feature/33/derive enum variants (#34)
* Run rustfmt over repository.

* Bump `syn` to 0.15

* Implemented ability to `serialize_all` using cases from `heck`.

Issue #21

* Use `path` and `version` in dependency specifications.

Issue #21

* Updated documentation.

Issue #21

* Added `CHANGELOG.md`.

* Also convert case when deriving `Display`.

Issue #21

* Added `EnumDiscriminants` derive.

Issue #33

* Added the ability to rename derived `EnumDiscriminants`.

Issue #33

* Updated `README.md` and lib.rs docs.

Issue #33

* Updated `CHANGELOG.md`.

Issue #33

* WIP: refactoring to allow attributes on discriminants enum.

* Use single `strum_discriminants` top level attribute.

Issue #33

* Allow multiple declarations of `strum_discriminants` attribute.

Issue #33

* Pass through all other attributes to discriminant enum.

Issue #33

* Add `impl From<MyEnum> for MyEnumDiscriminants`.

Issue #33

* Add `impl<'_enum> From<&'_enum MyEnum> for MyEnumDiscriminants`.

Issue #33

* Added complex case test for `From` derivation.

Issue #33

* Added docs to some helper functions.

* Added docs about `From` impls.

Issue #33
2018-09-26 12:13:45 -07:00
Peter Glotfelty
b6e4e66157
Did a little bit of refactoring and added some docs around AsStaticStr (#28)
* Did a little bit of refactoring and added some docs around AsStaticStr

* Revving the version in the cargoo.toml

* Managing Cargo.toml is a bit tedious when deploying packages that depend on each other

* Updated Cargo.toml
2018-06-26 08:22:19 -07:00
Peter Glotfelty 🚀
f039c629e2 Implemented Display for enums and added exactsizeiter to enumiter 2018-03-10 13:06:17 -08:00
Alex Burka
788cb9a0cf don't suggest wildcard dependencies (#14)
* don't suggest wildcard dependencies in readme
* don't suggest wildcard deps in docs
2018-02-08 16:12:17 -08:00
Adam Wittenberg
40c510304c Fix associated type in example generated code (#11) 2017-10-30 10:53:58 -07:00
Peternator7
55f61035f7 Updated README to include AsRefStr 2017-08-23 22:20:39 -07:00
wangcong
d0ae6ff71d fix README Some path (#7)
* fix README `Some` path
* add missing `
2017-06-29 13:51:50 -07:00
Niklas Claesson
56611a5cf4 Update README.md
Missed one tick
2017-06-28 22:50:43 +02:00
Peternator7
a82aaa1e0d Fixed a link in the readme 2017-04-15 19:01:58 -07:00
Peternator7
fbea713633 Updated Version. Changed Readme 2017-04-15 18:54:49 -07:00
Peter Glotfelty
c171612524 Added an Appveyor.yml and fixed small issues in the Cargo.toml 2017-02-25 08:48:20 -08:00
Peter Glotfelty
9dcade9077 Added one more test file 2017-02-23 00:09:57 -08:00
Peter Glotfelty
1801a300d3 Fixed some documentation bugs 2017-02-15 21:16:16 -08:00
Peter Glotfelty
42ee963b37 Merged changes from durka and updated docs accordinglt 2017-02-15 18:31:19 -08:00
Peter Glotfelty
a91a4e35ba Fixed merge conflicts 2017-02-13 23:13:24 -08:00
Peter Glotfelty
ef401fcd27 Added better support for debugging items 2017-02-13 23:11:17 -08:00
Peter Glotfelty
9fa967505c Update README.md 2017-02-12 12:53:37 -08:00
Peter Glotfelty
460700124a Update README.md
Fixed the link on the readme and removed some of the lines that rustdoc parses differently than a standard markdown parser
2017-02-12 12:52:51 -08:00
Peter Glotfelty
d3b7b7e761 Fixed the links 2017-02-11 23:03:42 -08:00
Peter Glotfelty
04f0726668 Added badges to readme 2017-02-11 23:00:43 -08:00
Peter Glotfelty
271198e96e forgot to remove additional spaces. It's fixed now 2017-02-11 22:46:32 -08:00
Peter Glotfelty
c52cd5942a Revised documentation and it reads better now. Started writing a test crate. 2017-02-11 22:44:40 -08:00
Peter Glotfelty
2f23362dd2 Initial commit 2017-02-04 18:50:41 -08:00