Commit Graph

303 Commits

Author SHA1 Message Date
Ashley Mannix
cf728d0257 comment the infra for stderr checking in beta 2021-08-12 07:51:11 +10:00
Ashley Mannix
7ae1fad352
Update CHANGELOG.md
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
2021-08-12 07:45:56 +10:00
Ashley Mannix
2de2af803e
Update CHANGELOG.md
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
2021-08-12 07:45:51 +10:00
Ashley Mannix
22a8878ce2
Update CHANGELOG.md
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
2021-08-12 07:45:40 +10:00
Ashley Mannix
80a48b0485
Update CHANGELOG.md
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
2021-08-12 07:45:34 +10:00
Ashley Mannix
eb31b1ae4b allow stderr to be ignored on non-beta compilers 2021-08-05 12:48:40 +10:00
Ashley Mannix
ab6c459cb4 prepare for 1.3.0 release 2021-08-05 11:28:42 +10:00
Ashley Mannix
72a01b9e33 remove trailing comment 2021-08-05 11:07:15 +10:00
Ashley Mannix
fd87b239aa commit stderr for compilefail tests 2021-08-05 11:06:04 +10:00
Ashley Mannix
c77191e53a add note about avoiding zero flags 2021-08-05 10:56:50 +10:00
Ashley Mannix
9defa89c1b
Merge pull request #249 from konsumlamm/self
Use `Self` & fix bug when overriding `stringify!`
2021-08-05 10:54:11 +10:00
konsumlamm
bef10f13ce Remove __bitflags_stringify! 2021-08-04 13:02:19 +02:00
konsumlamm
a6978d92f5 Use Self
Fix bug when overriding `stringify!`
2021-08-04 12:37:28 +02:00
Ashley Mannix
ec0fa76915
Merge pull request #244 from thomcc/setops
Add named functions to perform set operations
2021-08-04 08:50:27 +10:00
Ashley Mannix
195bf052e9
Merge pull request #247 from konsumlamm/fix-core
Fix regression & simplify tests
2021-08-04 08:47:38 +10:00
konsumlamm
777cd3f80a Move test_suite to tests 2021-07-19 19:43:25 +02:00
konsumlamm
75f7192557 Fix regression introduced in #246
Add test case
2021-07-19 16:24:15 +02:00
Ashley Mannix
efab7f3088
Merge pull request #187 from flier/repr_transparent
add #[repr(transparent)]
2021-07-19 10:37:02 +10:00
Ashley Mannix
46a2c8e72e
Merge pull request #246 from konsumlamm/modernization
Modernization
2021-07-19 10:07:43 +10:00
Ashley Mannix
6aadbd0dbd
Merge pull request #245 from konsumlamm/fix-typos
Fix typos
2021-07-19 10:03:54 +10:00
konsumlamm
ea8d102ba6 Don't reexport core 2021-06-27 20:10:26 +02:00
konsumlamm
27d1be19e5 Modernize imports 2021-06-27 20:00:43 +02:00
konsumlamm
66e11427aa Simplify bitflags! macro by using :vis 2021-06-27 17:53:48 +02:00
konsumlamm
39810e76f3 Fix typos 2021-06-26 21:42:01 +02:00
Thom Chiovoloni
a74e4577d5 Add named functions to perform set operations 2021-06-09 19:04:52 -07:00
Flier Lu
869ff95708 add #[repr(transparent)] for the the FFI layout 2021-05-20 11:16:17 +08:00
Ashley Mannix
1e41c29591
Merge pull request #240 from KodrAus/fix/ci
Fix up CI Again
2021-05-18 14:57:40 +10:00
Ashley Mannix
bbd5d4dfb4 remove unneeded infra and dependence on compiler msgs 2021-05-16 20:08:13 +10:00
Ashley Mannix
afd25d317c bump to 1.46.0 2021-05-16 16:05:05 +10:00
Ashley Mannix
5e79588a09 update MSRV based on current impl 2021-05-16 16:00:43 +10:00
Ashley Mannix
ae4f46f187
Merge pull request #211 from niklasf/is-all-extra-bits
Let is_all() ignore extra bits (fixes #208)
2021-05-16 15:35:42 +10:00
Ashley Mannix
ec76dd2096
Merge pull request #225 from thiagoarrais/empty
Allows empty flag definition
2021-05-16 15:24:02 +10:00
Ashley Mannix
789e63cbf5
Merge pull request #239 from ratijas/rename-u128
Rename i128 file & test to u128
2021-05-16 15:23:50 +10:00
Ashley Mannix
d2495ff8b3
Merge pull request #238 from ratijas/delet-travis
Remove remaining mentions of Travis CI
2021-05-16 15:23:41 +10:00
Ashley Mannix
f356929dc3
Merge pull request #229 from bprosnitz/patch-1
Make from_bits a const fn
2021-05-11 11:03:18 +10:00
Ashley Mannix
6e93266858
Merge branch 'master' into empty 2021-05-11 11:01:55 +10:00
Ashley Mannix
bd24f9d8d2
Merge pull request #235 from konsumlamm/multiple-bitflags
Allow multiple bitflags structs in one macro invocation
2021-05-11 10:57:45 +10:00
ivan tkachenko
2f3e784091
Rename i128 file & test to u128 2021-05-09 18:28:19 +03:00
ivan tkachenko
210dd349ef
Remove remaining mentions of Travis CI
Badges section has been removed from crates.io; it is suggested to place
them in README instead[1], which we already have done.

In bors.toml, the status section. Its is unclear from the docs[2], what those
strings are. But it seems to me, they should reference name of GitHub
Workflow file with CI pipelines[3].

[1]: https://doc.rust-lang.org/cargo/reference/manifest.html#the-badges-section
[2]: https://bors.tech/documentation/
[3]: https://bors.tech/devdocs/bors-ng/readme.html
2021-05-09 18:12:50 +03:00
konsumlamm
380d3c0750 Add test for bitflags! {} 2021-02-11 18:07:37 +01:00
Thiago Arrais
3e4d47513a Allows empty flag definition
Fixes #179
2021-01-12 09:53:55 -03:00
konsumlamm
6bbbaabdbe Allow multiple bitflags structs in one macro invocation
Change mentions of the `flags` keyword (used before 0.9) to `struct`
2020-12-27 14:23:54 +01:00
Ashley Mannix
c2ba431413
Get CI green (#232) 2020-11-07 09:28:17 +10:00
Ashley Mannix
ccd7cb88d9
Migrate to github actions (#231) 2020-11-07 09:11:27 +10:00
Ashley Mannix
080e9edce5
Merge pull request #227 from fortanix/raoul/rustc-dep-of-std
Making crate accessible from std
2020-11-07 08:59:39 +10:00
Raoul Strackx
4a233f111d Fixed expected error message 2020-11-05 17:46:31 +01:00
Benjamin Prosnitz
c3fb4e64a8
Make from_bits a const fn
'if' now works in 'const fn as of rust 1.4.6 (https://blog.rust-lang.org/2020/08/27/Rust-1.46.0.html).

I would love to have 'from_bits' be a 'const fn' because it is the safest from_* function.
2020-10-19 16:58:51 -05:00
Raoul Strackx
ccd61a94e5 Making crate accessible from std 2020-10-12 16:51:45 +02:00
Niklas Fiekas
64379434f7 Let is_all() ignore extra bits (fixes #208) 2020-02-04 11:47:06 +01:00
Ashley Mannix
15e911c304
Merge pull request #207 from niklasf/unsafe-from-bits-unchecked
Document from_bits_unchecked unsafety (#200)
2020-01-28 11:51:36 +10:00