Skip to content

Reduce dependency size #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/assets/msrv-badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 23 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: CI

on:
push:
merge_group:
branches:
- staging
- trying
- main
pull_request:
branches: [main]
branches:
- main
workflow_dispatch:

env:
Expand All @@ -15,9 +15,10 @@ env:
jobs:
ci:
name: CI
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
cargo_checks:
- name: Enforce default cargo fmt
subcommand: fmt -- --check
Expand All @@ -28,29 +29,27 @@ jobs:
- name: Build
subcommand: build --release --all-features --verbose
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Stable with rustfmt and clippy
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
- name: cargo check - ${{ matrix.cargo_checks.name }}
run: cargo ${{ matrix.cargo_checks.subcommand }}

update-project-stuff:
if: github.event_name == 'push' && github.ref == 'refs/heads/staging'
uses: ./.github/workflows/update-repo-stuff.yml
secrets: inherit
#update-project-stuff:
# if: github.event_name == 'push' && github.ref == 'refs/heads/staging'
# uses: ./.github/workflows/update-repo-stuff.yml
# secrets: inherit

done:
name: Done
if: github.event_name == 'push' && github.ref == 'refs/heads/staging'
needs:
- ci
- update-project-stuff
runs-on: ubuntu-latest
steps:
- name: Done
run: echo "Done!"
#done:
# name: Done
# if: github.event_name == 'push' && github.ref == 'refs/heads/staging'
# needs:
# - ci
# - update-project-stuff
# runs-on: ubuntu-latest
# steps:
# - name: Done
# run: echo "Done!"
9 changes: 3 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@ jobs:
name: Publish to crates.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: katyo/publish-crates@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
45 changes: 43 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,26 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [UNRELEASED]
## [0.4.5](https://github.com/tjtelan/git-url-parse-rs/tree/v0.4.5) - 2024-09-06

### CI

- Update changelog

### Changed

- Update MSRV badge
- Update README badges

### Fixed

- Add test for #51

### Other

- Reduce required dependencies

## [0.4.4](https://github.com/tjtelan/git-url-parse-rs/tree/v0.4.4) - 2022-11-05

### Fixed

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

### Other

- 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))
- Ci tune ([#18](https://github.com/tjtelan/git-url-parse-rs/issues/18))

### Removed

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

## [0.4.0](https://github.com/tjtelan/git-url-parse-rs/tree/v0.4.0) - 2021-11-14

### Added

- Adding release dates in changelog
- Rename workflow + add workflow_dispatch to ci

## [0.3.1](https://github.com/tjtelan/git-url-parse-rs/tree/v0.3.1) - 2021-01-27

### CI

- Updating Changelog to prepare for v0.3.1

### Other

- 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))

## [0.3.0](https://github.com/tjtelan/git-url-parse-rs/tree/v0.3.0) - 2020-10-02

### Added

- Adding schemas

## [0.2.0](https://github.com/tjtelan/git-url-parse-rs/tree/v0.2.0) - 2020-05-13

### Added
Expand Down
17 changes: 10 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,18 @@ license = "MIT"
name = "git-url-parse"
readme = "README.md"
repository = "https://github.com/tjtelan/git-url-parse-rs"
version = "0.4.4"
version = "0.4.5"

[features]
default = []
tracing = ["dep:tracing"]

[dependencies]
tracing = "0.1"
url = "^2.2"
strum = "^0.24"
strum_macros = "^0.24"
color-eyre = "^0.6"
regex = "^1.4"
tracing = { version = "0.1", optional = true }
url = { version = "^2.2", default-features = false }
strum = { version = "^0.26", features = ["derive"] }
thiserror = "^1.0"

[dev-dependencies]
env_logger = "^0.9"
regex = "^1.10"
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@

![Minimum Supported Rust Version](https://raw.githubusercontent.com/tjtelan/git-url-parse-rs/main/.github/assets/msrv-badge.svg)
[![Crates.io](https://img.shields.io/crates/v/git-url-parse)](https://crates.io/crates/git-url-parse)
![Crates.io](https://img.shields.io/crates/d/git-url-parse)
[![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)
[![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)
[![docs.rs](https://docs.rs/git-url-parse/badge.svg)](https://docs.rs/git-url-parse/)
[![licence](https://img.shields.io/github/license/tjtelan/git-url-parse-rs)](LICENSE)
![Maintenance](https://img.shields.io/maintenance/yes/2022)
[![License](https://img.shields.io/github/license/tjtelan/git-url-parse-rs)](LICENSE)
![Maintenance](https://img.shields.io/maintenance/yes/2024)

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

Expand Down
6 changes: 0 additions & 6 deletions bors.toml

This file was deleted.

Loading
Loading