New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved the README #52
Conversation
❤️ |
|
||
Add stainless as a dependency in your `Cargo.toml` file | ||
``` toml | ||
[dependencies] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be a dev-dependency
Thanks for this. It looks great except for the one nit. |
* Added note about the fact that the nightly compiler build is required * Added instructions on how to integrate stainless * Reordered sections (overview before the example) * Added `before_each` & `after_each` to the nested `describe!` in the example * Clarified the `pub use` requirement
Oh yes, of course! Fixed. |
followed the instructions ... still getting
|
How are you running this? Via |
yep! |
You haven't put the two lines at the top of [package]
name = "t"
version = "0.0.0"
[lib]
path = "hello.rs"
[dev-dependencies]
stainless = "*" #![feature(plugin)]
#![cfg_attr(test, plugin(stainless))]
#[cfg(test)]
mod tests {
pub use std::collections::HashMap;
describe! stainless {
it "can use HashMap" {
let mut map = HashMap::new();
map.insert(1, 1);
assert!(map.contains_key(&1));
}
}
}
|
copy pasted these changes and still getting the same error :D pushed it with the changes ... that version works for you ? what rust version are you running ? ... I'm on rustc 1.9.0-nightly (6e0f2f2f0 2016-03-16) |
Thank you! |
thanks for that ! |
Recently a few people (e.g. @grosser & @xetra11) had issues with stainless mainly due to the lack of documentation. I've tried to clarify the README a bit. See here for how Github would render it.
before_each
&after_each
to the nesteddescribe!
in the examplepub use
requirement