Skip to content

Commit

Permalink
test doc.rs
Browse files Browse the repository at this point in the history
This will pass build on stable but fail current nightly due to rust-lang/rust#38176 . So we are just checking if doc.rs generates stuff if nightly fails but stable passes
  • Loading branch information
ustulation committed Dec 15, 2016
1 parent a3eb855 commit c8cfc78
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ license = "GPL-3.0"
name = "cargo-prune"
readme = "README.md"
repository = "https://github.com/ustulation/cargo-prune"
version = "0.1.5"
version = "0.1.6"

[dependencies]
docopt = "~0.6.86"
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@ Currently this only works for `.rlib` dependencies.
You will need to cargo install it (i.e. should be in `~/.cargo/bin/` in linux etc.) for it to work.

E.g.:

- `cargo prune` (if installed to cargo bin directory)
- `cargo prune --target some/path` (if installed to cargo bin directory)

999 xx 99
21 changes: 21 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
//!
//! Currently this only works for `.rlib` dependencies.

#![allow(unused)]

extern crate docopt;
extern crate rustc_serialize;
#[macro_use]
Expand All @@ -22,6 +24,25 @@ use std::collections::HashMap;
use std::fs::{self, ReadDir};
use std::path::PathBuf;

mod foo {
pub struct Foo;
}

mod bar {
pub struct Foo;
}

mod baz {
use foo::*;

mod inner {
use bar::*;
use super::*;

const FOO: Foo = Foo;
}
}

static USAGE: &'static str = "
Usage:
cargo prune [options]
Expand Down

0 comments on commit c8cfc78

Please sign in to comment.