Skip to content

Commit

Permalink
use prelude from os-checker-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
zjp-CN committed Nov 23, 2024
1 parent 68b0f70 commit da868bb
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 12 deletions.
23 changes: 18 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@ tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
tracing-error = "0.2"

plugin_cargo = { version = "0.1.0", package = "os-checker-plugin-cargo" }
plugin = { version = "0.1.2", package = "os-checker-plugin" }
# FIXME: 将 Repo 功能移至 plugin,这样就不需要 plugin_cargo
plugin_cargo = { version = "0.1.1", package = "os-checker-plugin-cargo" }

7 changes: 2 additions & 5 deletions src/generate_rustdoc.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
use crate::DEPLOY;
use duct::cmd;
use indexmap::{indexmap, IndexSet};
use plugin_cargo::{
prelude::*,
repo::{local_base_dir, Repo},
write_json,
};
use plugin::{prelude::*, write_json};
use plugin_cargo::repo::{local_base_dir, Repo};
use std::sync::LazyLock;

static DOCS_URL: LazyLock<String> = LazyLock::new(|| {
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use plugin_cargo::{logger, prelude::*, repos};
use plugin::{logger, prelude::*, repos};

#[macro_use]
extern crate tracing;
Expand Down

0 comments on commit da868bb

Please sign in to comment.