Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
kingwingfly committed Mar 4, 2024
1 parent b5ef192 commit b313244
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 9 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com

## [Unreleased]

## [0.2.8] - 2024-03-04

- Auth reuse: use hard link instread of copying file
- Stop publish utils and cli to crates.io, because `Cargo` only allow modify `OutDir` during building now.
- Sync the version of cli and bin.

## [0.2.7] - 2024-03-03

- improve error hint of IoErr
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ resolver = "2"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[workspace.package]
version = "0.2.7"
version = "0.2.8"
authors = ["Louis <[email protected]>"]
description = "Back up your favorite online resources with CLI."
license = "MIT"
Expand All @@ -21,9 +21,9 @@ repository = "https://github.com/kingwingfly/fav"
documentation = ""

[workspace.dependencies]
fav_core = { path = "fav_core", version = ">=0.0.1" }
fav_core = { path = "fav_core" }
fav_derive = { path = "fav_derive", version = ">=0.0.1" }
fav_utils = { path = "fav_utils", version = ">=0.0.1" }
fav_utils = { path = "fav_utils" }
fav_cli = { path = "fav_cli" }
fav_utils_old = { path = "fav_utils_old" }

Expand Down
3 changes: 2 additions & 1 deletion fav_cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[package]
name = "fav_cli"
version = "0.0.1"
version.workspace= true
authors.workspace = true
description = "Fav's CLI, helping persist the remote source. Repo: https://github.com/kingwingfly/fav"
license.workspace = true
edition.workspace = true
repository.workspace = true
documentation = "https://docs.rs/fav_cli"
publish = false

[package.metadata.docs.rs]
all-features = true
Expand Down
3 changes: 1 addition & 2 deletions fav_cli/src/bili/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ use tracing::{info, warn};
pub(super) fn init() -> FavCoreResult<()> {
#[cfg(not(test))]
std::fs::create_dir_all(".fav")?;
Bili::default().write()?;
BiliSets::default().write()?;
Ok(())
}

pub(super) async fn login() -> FavCoreResult<()> {
let mut bili = Bili::read()?;
let mut bili = Bili::default();
bili.login().await?;
bili.write()
}
Expand Down
2 changes: 1 addition & 1 deletion fav_cli/src/bili/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl Cli {
AuthCommands::Login => login().await?,
AuthCommands::Logout => logout().await?,
AuthCommands::Reuse { path } => {
std::fs::copy(path.join("bili"), ".fav/bili")?;
std::fs::hard_link(path.join("bili"), ".fav/bili")?;
}
},
Commands::Status {
Expand Down
1 change: 1 addition & 0 deletions fav_utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ license.workspace = true
edition.workspace = true
repository.workspace = true
documentation = "https://docs.rs/fav_utils"
publish = false

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down

0 comments on commit b313244

Please sign in to comment.