Skip to content

Commit

Permalink
systest: create list of api items
Browse files Browse the repository at this point in the history
  • Loading branch information
stbuehler committed Oct 25, 2020
1 parent 36c8739 commit 3bec303
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion systest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ libc = "0.2"
openssl-sys = { path = "../openssl-sys" }

[build-dependencies]
ctest = "0.2"
# ctest = "0.2"
ctest = { git = "https://github.com/stbuehler/ctest", rev = "566f2305fc5364c108099e128cd63158688b9efa" }

[features]
vendored = ['openssl-sys/vendored']
1 change: 1 addition & 0 deletions systest/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,6 @@ fn main() {
}
});
cfg.fn_cname(|rust, link_name| link_name.unwrap_or(rust).to_string());
cfg.out_items("items.h");
cfg.generate("../openssl-sys/src/lib.rs", "all.rs");
}
5 changes: 5 additions & 0 deletions systest/src/bin/items.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
static ITEMS: &'static str = include_str!(concat!(env!("OUT_DIR"), "/items.h"));

fn main() {
print!("{}", ITEMS);
}

0 comments on commit 3bec303

Please sign in to comment.