Lines Matching +full:test +full:- +full:docs
1 …aw.githubusercontent.com/nvzqz/static-assertions-rs/assets/Banner.png)](https://github.com/nvzqz/s…
8 <a href="https://travis-ci.org/nvzqz/static-assertions-rs">
9 … <img src="https://travis-ci.org/nvzqz/static-assertions-rs.svg?branch=master" alt="Build Status">
11 <img src="https://img.shields.io/badge/rustc-^1.37.0-blue.svg" alt="rustc ^1.37.0">
17 …<img src="https://buymecoffee.intm.org/img/button-paypal-white.png" alt="Buy me a coffee" height="…
21 Compile-time assertions for Rust, brought to you by
25 more. See the [docs] and [FAQ](#faq) for more info!
32 [`Cargo.toml`](https://doc.rust-lang.org/cargo/reference/manifest.html):
49 - [`assert_cfg!`]
50 - [`assert_eq_align!`]
51 - [`assert_eq_size!`]
52 - [`assert_eq_size_ptr!`]
53 - [`assert_eq_size_val!`]
54 - [`assert_fields!`]
55 - [`assert_impl_all!`]
56 - [`assert_impl_any!`]
57 - [`assert_impl_one!`]
58 - [`assert_not_impl_all!`]
59 - [`assert_not_impl_any!`]
60 - [`assert_obj_safe!`]
61 - [`assert_trait_sub_all!`]
62 - [`assert_trait_super_all!`]
63 - [`assert_type_eq_all!`]
64 - [`assert_type_ne_all!`]
65 - [`const_assert!`]
66 - [`const_assert_eq!`]
67 - [`const_assert_ne!`]
71 - **Q:** When would I want to use this?
78 - With the release of 1.39, `str::len` can be called in a `const`
88 - Have a type that absolutely must implement certain traits? With
99 - **Q:** How can I contribute?
103 - Attempt coming up with some form of static analysis that you'd like to see
107 - Implement your own static assertion and create a [pull request].
109 - Give feedback. What are some pain points? Where is it unpleasant?
111 - Write docs. If you're familiar with how this library works, sharing your
114 - **Q:** Will this affect my compiled binary?
117 at compile-time, and so no code is emitted to run.
119 - **Q:** Will this affect my compile times?
122 can be put in `dev-dependencies`:
125 [dev-dependencies]
129 and then assertions can be conditionally run behind `#[cfg(test)]`:
132 #[cfg(test)]
136 However, the assertions will only be checked when running `cargo test`. This
137 somewhat defeats the purpose of catching false static conditions up-front with
140 - **Q:** What is `const _`?
143 can be called from a global scope without requiring a scope-unique label. This
146 [tracking issue](https://github.com/rust-lang/rust/issues/54912)
148 [issue #1](https://github.com/nvzqz/static-assertions-rs/issues/1)
153 See [`CHANGELOG.md`](https://github.com/nvzqz/static-assertions-rs/blob/master/CHANGELOG.md)
160 - [MIT License](https://github.com/nvzqz/static-assertions-rs/blob/master/LICENSE-MIT)
162 - [Apache License (Version 2.0)](https://github.com/nvzqz/static-assertions-rs/blob/master/LICENSE-…
166 [new issue]: https://github.com/nvzqz/static-assertions-rs/issues/new
167 [pull request]: https://github.com/nvzqz/static-assertions-rs/pulls
168 [docs]: https://docs.rs/static_assertions
170 [`assert_cfg!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert…
171 [`assert_eq_align!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert…
172 [`assert_eq_size!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert…
173 [`assert_eq_size_ptr!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert…
174 [`assert_eq_size_val!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert…
175 [`assert_fields!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert…
176 [`assert_impl_all!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert…
177 [`assert_impl_any!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert…
178 [`assert_impl_one!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert…
179 [`assert_not_impl_all!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert…
180 [`assert_not_impl_any!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert…
181 [`assert_obj_safe!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert…
182 [`assert_trait_sub_all!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert…
183 [`assert_trait_super_all!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert…
184 [`assert_type_eq_all!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert…
185 [`assert_type_ne_all!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert…
186 [`const_assert!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.const_…
187 [`const_assert_eq!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.const_…
188 [`const_assert_ne!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.const_…