forked from mirrors/kingfisher
performance improvements and rule improvements
This commit is contained in:
parent
c73a44fbf9
commit
2320a7ff72
1 changed files with 8 additions and 0 deletions
|
|
@ -13,6 +13,10 @@ fn library_crates_work_from_external_project() -> anyhow::Result<()> {
|
|||
let core_path = toml_escape_path(&repo_root.join("crates/kingfisher-core"));
|
||||
let rules_path = toml_escape_path(&repo_root.join("crates/kingfisher-rules"));
|
||||
let scanner_path = toml_escape_path(&repo_root.join("crates/kingfisher-scanner"));
|
||||
let vectorscan_rs_path =
|
||||
toml_escape_path(&repo_root.join("vendor/vectorscan-rs/vectorscan-rs"));
|
||||
let vectorscan_rs_sys_path =
|
||||
toml_escape_path(&repo_root.join("vendor/vectorscan-rs/vectorscan-rs-sys"));
|
||||
|
||||
let temp = tempfile::tempdir()?;
|
||||
let project_dir = temp.path().join("external-kingfisher-consumer");
|
||||
|
|
@ -33,6 +37,10 @@ kingfisher-rules = {{ path = "{rules_path}" }}
|
|||
|
||||
[target.'cfg(not(windows))'.dependencies]
|
||||
kingfisher-scanner = {{ path = "{scanner_path}" }}
|
||||
|
||||
[patch.crates-io]
|
||||
vectorscan-rs = {{ path = "{vectorscan_rs_path}" }}
|
||||
vectorscan-rs-sys = {{ path = "{vectorscan_rs_sys_path}" }}
|
||||
"#
|
||||
),
|
||||
)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue