Skip to content

Commit e4f3068

Browse files
authored
Reduce dependency size (#53)
* chore: Remove `regex` crate And update deps, bump crate version * chore: Reduce required dependencies - Move `tracing` to feature flag - Replace `color-eyre` with `thiserror` * chore: Update MSRV badge * chore: Update README badges * chore: Update changelog Git history was missing tags, so changelog was missing them too Set the next version back to next in 0.4.x series * test: Add test for #51
1 parent 71cab61 commit e4f3068

File tree

13 files changed

+302
-132
lines changed

13 files changed

+302
-132
lines changed

Diff for: .github/assets/msrv-badge.svg

+1-1
Loading

Diff for: .github/workflows/ci.yml

+23-24
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: CI
22

33
on:
4-
push:
4+
merge_group:
55
branches:
6-
- staging
7-
- trying
6+
- main
87
pull_request:
9-
branches: [main]
8+
branches:
9+
- main
1010
workflow_dispatch:
1111

1212
env:
@@ -15,9 +15,10 @@ env:
1515
jobs:
1616
ci:
1717
name: CI
18-
runs-on: ubuntu-latest
18+
runs-on: ${{ matrix.os }}
1919
strategy:
2020
matrix:
21+
os: [ubuntu-latest, windows-latest, macos-latest]
2122
cargo_checks:
2223
- name: Enforce default cargo fmt
2324
subcommand: fmt -- --check
@@ -28,29 +29,27 @@ jobs:
2829
- name: Build
2930
subcommand: build --release --all-features --verbose
3031
steps:
31-
- uses: actions/checkout@v2
32+
- uses: actions/checkout@v4
3233
- name: Stable with rustfmt and clippy
33-
uses: actions-rs/toolchain@v1
34+
uses: dtolnay/rust-toolchain@stable
3435
with:
35-
profile: minimal
36-
toolchain: stable
3736
components: rustfmt, clippy
38-
- uses: Swatinem/rust-cache@v1
37+
- uses: Swatinem/rust-cache@v2
3938
- name: cargo check - ${{ matrix.cargo_checks.name }}
4039
run: cargo ${{ matrix.cargo_checks.subcommand }}
4140

42-
update-project-stuff:
43-
if: github.event_name == 'push' && github.ref == 'refs/heads/staging'
44-
uses: ./.github/workflows/update-repo-stuff.yml
45-
secrets: inherit
41+
#update-project-stuff:
42+
# if: github.event_name == 'push' && github.ref == 'refs/heads/staging'
43+
# uses: ./.github/workflows/update-repo-stuff.yml
44+
# secrets: inherit
4645

47-
done:
48-
name: Done
49-
if: github.event_name == 'push' && github.ref == 'refs/heads/staging'
50-
needs:
51-
- ci
52-
- update-project-stuff
53-
runs-on: ubuntu-latest
54-
steps:
55-
- name: Done
56-
run: echo "Done!"
46+
#done:
47+
# name: Done
48+
# if: github.event_name == 'push' && github.ref == 'refs/heads/staging'
49+
# needs:
50+
# - ci
51+
# - update-project-stuff
52+
# runs-on: ubuntu-latest
53+
# steps:
54+
# - name: Done
55+
# run: echo "Done!"

Diff for: .github/workflows/publish.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@ jobs:
1010
name: Publish to crates.io
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
14-
- uses: actions-rs/toolchain@v1
15-
with:
16-
toolchain: stable
17-
override: true
18-
- uses: katyo/publish-crates@v1
13+
- uses: actions/checkout@v4
14+
- uses: dtolnay/rust-toolchain@stable
15+
- uses: katyo/publish-crates@v2
1916
with:
2017
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

Diff for: CHANGELOG.md

+43-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,26 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [UNRELEASED]
8+
## [0.4.5](https://github.com/tjtelan/git-url-parse-rs/tree/v0.4.5) - 2024-09-06
9+
10+
### CI
11+
12+
- Update changelog
13+
14+
### Changed
15+
16+
- Update MSRV badge
17+
- Update README badges
18+
19+
### Fixed
20+
21+
- Add test for #51
22+
23+
### Other
24+
25+
- Reduce required dependencies
26+
27+
## [0.4.4](https://github.com/tjtelan/git-url-parse-rs/tree/v0.4.4) - 2022-11-05
928

1029
### Fixed
1130

@@ -54,13 +73,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5473

5574
### Other
5675

57-
- Loosens dependency restrictions ([#12](https://github.com/tjtelan/git-url-parse-rs/issues/12)) ([#13](https://github.com/tjtelan/git-url-parse-rs/issues/13))
5876
- Ci tune ([#18](https://github.com/tjtelan/git-url-parse-rs/issues/18))
5977

6078
### Removed
6179

6280
- Update dependencies and readme ([#23](https://github.com/tjtelan/git-url-parse-rs/issues/23))
6381

82+
## [0.4.0](https://github.com/tjtelan/git-url-parse-rs/tree/v0.4.0) - 2021-11-14
83+
84+
### Added
85+
86+
- Adding release dates in changelog
87+
- Rename workflow + add workflow_dispatch to ci
88+
89+
## [0.3.1](https://github.com/tjtelan/git-url-parse-rs/tree/v0.3.1) - 2021-01-27
90+
91+
### CI
92+
93+
- Updating Changelog to prepare for v0.3.1
94+
95+
### Other
96+
97+
- Loosens dependency restrictions ([#12](https://github.com/tjtelan/git-url-parse-rs/issues/12)) ([#13](https://github.com/tjtelan/git-url-parse-rs/issues/13))
98+
99+
## [0.3.0](https://github.com/tjtelan/git-url-parse-rs/tree/v0.3.0) - 2020-10-02
100+
101+
### Added
102+
103+
- Adding schemas
104+
64105
## [0.2.0](https://github.com/tjtelan/git-url-parse-rs/tree/v0.2.0) - 2020-05-13
65106

66107
### Added

Diff for: Cargo.toml

+10-7
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@ license = "MIT"
99
name = "git-url-parse"
1010
readme = "README.md"
1111
repository = "https://github.com/tjtelan/git-url-parse-rs"
12-
version = "0.4.4"
12+
version = "0.4.5"
13+
14+
[features]
15+
default = []
16+
tracing = ["dep:tracing"]
1317

1418
[dependencies]
15-
tracing = "0.1"
16-
url = "^2.2"
17-
strum = "^0.24"
18-
strum_macros = "^0.24"
19-
color-eyre = "^0.6"
20-
regex = "^1.4"
19+
tracing = { version = "0.1", optional = true }
20+
url = { version = "^2.2", default-features = false }
21+
strum = { version = "^0.26", features = ["derive"] }
22+
thiserror = "^1.0"
2123

2224
[dev-dependencies]
2325
env_logger = "^0.9"
26+
regex = "^1.10"

Diff for: README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
![Minimum Supported Rust Version](https://raw.githubusercontent.com/tjtelan/git-url-parse-rs/main/.github/assets/msrv-badge.svg)
44
[![Crates.io](https://img.shields.io/crates/v/git-url-parse)](https://crates.io/crates/git-url-parse)
5-
![Crates.io](https://img.shields.io/crates/d/git-url-parse)
6-
[![Github actions build status](https://github.com/tjtelan/git-url-parse-rs/workflows/git-url-parse/badge.svg)](https://github.com/tjtelan/git-url-parse-rs/actions/workflows/rust.yml)
5+
[![Github actions CI status](https://github.com/tjtelan/git-url-parse-rs/actions/workflows/ci.yml/badge.svg)](https://github.com/tjtelan/git-url-parse-rs/actions/workflows/ci.yml)
76
[![docs.rs](https://docs.rs/git-url-parse/badge.svg)](https://docs.rs/git-url-parse/)
8-
[![licence](https://img.shields.io/github/license/tjtelan/git-url-parse-rs)](LICENSE)
9-
![Maintenance](https://img.shields.io/maintenance/yes/2022)
7+
[![License](https://img.shields.io/github/license/tjtelan/git-url-parse-rs)](LICENSE)
8+
![Maintenance](https://img.shields.io/maintenance/yes/2024)
109

1110
Supports common protocols as specified by the [Pro Git book](https://git-scm.com/book/en/v2)
1211

Diff for: bors.toml

-6
This file was deleted.

0 commit comments

Comments
 (0)