Moved example to separate directory

And add it to Cargo.toml
This commit is contained in:
Alexandre Bury 2015-05-16 13:09:38 -07:00
parent e17ca97136
commit a8c8855831
2 changed files with 3 additions and 7 deletions

View File

@ -3,9 +3,6 @@ name = "cursive"
version = "0.1.0"
authors = ["Alexandre Bury <alexandre.bury@gmail.com>"]
[[bin]]
name = "cursive-example"
[lib]
name = "cursive"
@ -14,3 +11,6 @@ name = "cursive"
[dependencies.ncurses]
git = "https://github.com/jeaye/ncurses-rs"
[[example]]
name = "hello_world"
path = "examples/hello_world.rs"

View File

@ -11,9 +11,5 @@ fn main() {
siv.add_layer(TextView::new("Hello World!\nPress q to quit the application."));
siv.add_global_callback('a' as i32, |s, _| {
//
});
siv.run();
}