Skip to content

Commit

Permalink
[all] Remove log crate dep from all Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
nazmulidris committed Oct 19, 2024
1 parent e8c42b4 commit 3b171dd
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 33 deletions.
4 changes: 0 additions & 4 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion cmdr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ r3bl_macro = { path = "../macro", version = "0.9.10" } # ve
r3bl_tui = { path = "../tui", version = "0.5.9" } # version is requried to publish to crates.io
r3bl_tuify = { path = "../tuify", version = "0.1.27" } # version is requried to publish to crates.io
r3bl_analytics_schema = { path = "../analytics_schema", version = "0.0.2" } # version is requried to publish to crates.io
log = { version = "0.4.22", features = ["std"] }

# Reqwest (HTTP client).
reqwest = { version = "0.12.7", features = ["json"] }
Expand Down
1 change: 0 additions & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ path = "src/lib.rs"
[dependencies]
# r3bl-open-core.
r3bl_ansi_color = { path = "../ansi_color", version = "0.6.9" } # Convert between ansi and rgb.
log = { version = "0.4.22", features = ["std"] } # For logging.

# https://github.com/serde-rs/serde.
serde = { version = "1.0.210", features = ["derive"] }
Expand Down
44 changes: 23 additions & 21 deletions docs/release-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,22 @@ Finally, push the git commit and tag to the remote repo: `git push ; git push --
<a id="markdown-example-of-full-workflow" name="example-of-full-workflow"></a>

```sh
cd ansi_color
# Update version in Cargo.toml and this file
# Update CHANGELOG.md
# Run "Dependi: Update All dependencies to the latest version" in vscode w/ the Cargo.toml file open
# - instead of using `cargo-edit` https://github.com/killercup/cargo-edit and the `cargo upgrade` command
cargo update --verbose # Update Cargo.lock file (not Cargo.toml)
cargo build; cargo test; cargo doc --no-deps; cargo clippy --fix --allow-dirty --allow-staged
cargo publish --dry-run --allow-dirty
cargo readme > README.md
git add -A
git commit -S -m "v0.6.10-ansi_color"
git tag -a v0.6.10-ansi_color -m "v0.6.10-ansi_color"
cargo publish
git push ; git push --tags # Push tags & commits
cd ..

cd core
# Update version in Cargo.toml and this file
# Update CHANGELOG.md
Expand Down Expand Up @@ -79,12 +95,6 @@ cd tuify
# - instead of using `cargo-edit` https://github.com/killercup/cargo-edit and the `cargo upgrade` command
cargo update --verbose # Update Cargo.lock file (not Cargo.toml)
cargo build; cargo test; cargo doc --no-deps; cargo clippy --fix --allow-dirty --allow-staged
<!-- TOC -->

- [Cut a release and publish it to crates.io](#cut-a-release-and-publish-it-to-cratesio)
- [Example of full workflow](#example-of-full-workflow)

<!-- /TOC -->G.md
# Run "Dependi: Update All dependencies to the latest version" in vscode w/ the Cargo.toml file open
# - instead of using `cargo-edit` https://github.com/killercup/cargo-edit and the `cargo upgrade` command
cargo update --verbose # Update Cargo.lock file (not Cargo.toml)
Expand Down Expand Up @@ -165,22 +175,14 @@ cargo publish
git push ; git push --tags # Push tags & commits
cd ..

cd ansi_color
# Update version in Cargo.toml and this file
# Update CHANGELOG.md
# Run "Dependi: Update All dependencies to the latest version" in vscode w/ the Cargo.toml file open
# - instead of using `cargo-edit` https://github.com/killercup/cargo-edit and the `cargo upgrade` command
cargo update --verbose # Update Cargo.lock file (not Cargo.toml)
cargo build; cargo test; cargo doc --no-deps; cargo clippy --fix --allow-dirty --allow-staged
cargo publish --dry-run --allow-dirty
cargo readme > README.md
git add -A
git commit -S -m "v0.6.10-ansi_color"
git tag -a v0.6.10-ansi_color -m "v0.6.10-ansi_color"
cargo publish
git push ; git push --tags # Push tags & commits
cd ..
# Finally, push the git commit and tag to the remote repo
git tag -l --sort=-creatordate # Check the tags
git push ; git push --tags
```

## Deprecated workflow for crates moved to [r3bl-open-core-archive](https://github.com/r3bl-org/r3bl-open-core-archive) repo

```sh
cd simple_logger
# Update version in Cargo.toml and this file
# Update CHANGELOG.md
Expand Down
3 changes: 0 additions & 3 deletions tui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ r3bl_core = { path = "../core", version = "0.9.16" } # version is re
r3bl_macro = { path = "../macro", version = "0.9.10" } # version is requried to publish to crates.io
r3bl_ansi_color = { path = "../ansi_color", version = "0.6.10" } # version is requried to publish to crates.io

# Logging.
log = { version = "0.4.22", features = ["std"] }

# Time
chrono = "0.4.38"

Expand Down
3 changes: 0 additions & 3 deletions tuify/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ serde_json = "1.0.128"
# Terminal output.
crossterm = "0.28.1"

# Logging.
log = { version = "0.4.22", features = ["std"] }

# Clap.
# More info: https://stackoverflow.com/a/76131914/2085356
clap = { version = "4.5.17", features = ["derive", "wrap_help"] }
Expand Down

0 comments on commit 3b171dd

Please sign in to comment.