Skip to content

Commit

Permalink
Fix linking in fuzzing
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski authored and orium committed Oct 28, 2024
1 parent a886dc8 commit a00705a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
1 change: 1 addition & 0 deletions fuzz/test_case/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ publish = false

[dependencies]
lol_html = { path = "../../" }
lolhtml = { path = "../../c-api" }
encoding_rs = "0.8.13"
libc = "0.2.61"
rand = "0.8.4"
Expand Down
3 changes: 0 additions & 3 deletions fuzz/test_case/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ fn main() {
let out_dir = env::var("OUT_DIR").unwrap();
let out_path = PathBuf::from(&out_dir);

println!("cargo:rustc-link-search=../c-api/target/debug");
println!("cargo:rustc-link-lib=lolhtml");

// The bindgen::Builder is the main entry point
// to bindgen, and lets you build up options for
// the resulting bindings.
Expand Down
7 changes: 2 additions & 5 deletions fuzz/test_case/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]

extern crate encoding_rs;
extern crate lol_html;
extern crate rand;

extern crate libc;
// make it link
use lolhtml as _;

use libc::{c_char, c_void, size_t};
use rand::Rng;
Expand Down

0 comments on commit a00705a

Please sign in to comment.