Skip to content
This repository was archived by the owner on Mar 30, 2026. It is now read-only.

Commit f56f377

Browse files
committed
feat: init the package
1 parent 2dd8c4b commit f56f377

File tree

7 files changed

+24
-166
lines changed

7 files changed

+24
-166
lines changed

CHANGELOG.md

Lines changed: 0 additions & 142 deletions
Original file line numberDiff line numberDiff line change
@@ -1,142 +0,0 @@
1-
## v3.1.2
2-
3-
[compare changes](https://github.com/un-rust/template/compare/v3.1.1...v3.1.2)
4-
5-
### 🏡 Chore
6-
7-
- Update changelog for version 3.1.1 ([7de95c8](https://github.com/un-rust/template/commit/7de95c8))
8-
- Remove deprecated scripts for version bumping, initialization, release, and shared utilities ([1a120df](https://github.com/un-rust/template/commit/1a120df))
9-
- Bump version to 3.1.2 ([290c5d4](https://github.com/un-rust/template/commit/290c5d4))
10-
11-
### ❤️ Contributors
12-
13-
- Hyq <betterhyq@qq.com>
14-
15-
## v3.1.1
16-
17-
[compare changes](https://github.com/un-rust/template/compare/v3.1.0...v3.1.1)
18-
19-
### 🏡 Chore
20-
21-
- Update changelog for version 3.1.0 ([95879c1](https://github.com/un-rust/template/commit/95879c1))
22-
- Update dependencies and scripts to use unrust ([2604530](https://github.com/un-rust/template/commit/2604530))
23-
- Bump version to 3.1.1 ([d56ba79](https://github.com/un-rust/template/commit/d56ba79))
24-
25-
### ❤️ Contributors
26-
27-
- Hyq <betterhyq@qq.com>
28-
29-
## v3.1.0
30-
31-
[compare changes](https://github.com/un-rust/template/compare/v3.0.2...v3.1.0)
32-
33-
### 🏡 Chore
34-
35-
- Update changelog for version 3.0.2 ([ac269a7](https://github.com/un-rust/template/commit/ac269a7))
36-
- Bump version to 3.1.0 ([0532f45](https://github.com/un-rust/template/commit/0532f45))
37-
38-
### ❤️ Contributors
39-
40-
- Hyq <betterhyq@qq.com>
41-
42-
## v3.0.2
43-
44-
[compare changes](https://github.com/un-rust/template/compare/v3.0.1...v3.0.2)
45-
46-
### 🏡 Chore
47-
48-
- Update changelog for version 3.0.1 ([776b675](https://github.com/un-rust/template/commit/776b675))
49-
- Bump version to 3.0.2 ([10d422d](https://github.com/un-rust/template/commit/10d422d))
50-
51-
### ❤️ Contributors
52-
53-
- Hyq <betterhyq@qq.com>
54-
55-
## v3.0.1
56-
57-
[compare changes](https://github.com/un-rust/template/compare/v3.0.0...v3.0.1)
58-
59-
### 🏡 Chore
60-
61-
- Update changelog for version 3.0.0 ([5897bb4](https://github.com/un-rust/template/commit/5897bb4))
62-
- Add .template-version file for version 3.0.0 ([42d0979](https://github.com/un-rust/template/commit/42d0979))
63-
- Reset version in Cargo.toml to 1.0.0 and update success message ([33704b5](https://github.com/un-rust/template/commit/33704b5))
64-
- Update versioning process to include .template-version file ([f79f687](https://github.com/un-rust/template/commit/f79f687))
65-
- Bump version to 3.0.1 ([be77900](https://github.com/un-rust/template/commit/be77900))
66-
67-
### ❤️ Contributors
68-
69-
- Hyq <betterhyq@qq.com>
70-
71-
## v3.0.0
72-
73-
[compare changes](https://github.com/un-rust/template/compare/v2.1.0...v3.0.0)
74-
75-
### 🩹 Fixes
76-
77-
- Handle missing release URL in GitHub release script ([f493bc4](https://github.com/un-rust/template/commit/f493bc4))
78-
79-
### 🏡 Chore
80-
81-
- Update changelog for version 2.1.0 ([47c4579](https://github.com/un-rust/template/commit/47c4579))
82-
- Bump version to 3.0.0 ([bb933bd](https://github.com/un-rust/template/commit/bb933bd))
83-
84-
### ❤️ Contributors
85-
86-
- Hyq <betterhyq@qq.com>
87-
88-
## v2.1.0
89-
90-
[compare changes](https://github.com/un-rust/template/compare/v2.0.2...v2.1.0)
91-
92-
### 🚀 Enhancements
93-
94-
- Update the release info ([733457a](https://github.com/un-rust/template/commit/733457a))
95-
96-
### 🏡 Chore
97-
98-
- Update CHANGELOG for version 2.0.2 and document enhancements ([4bc8e1e](https://github.com/un-rust/template/commit/4bc8e1e))
99-
- Bump version to 2.1.0 ([168f7cb](https://github.com/un-rust/template/commit/168f7cb))
100-
101-
### ❤️ Contributors
102-
103-
- Hyq <betterhyq@qq.com>
104-
105-
## v2.0.2
106-
107-
[compare changes](https://github.com/un-rust/template/compare/v2.0.1...v2.0.2)
108-
109-
### 🚀 Enhancements
110-
111-
- Error changelog ([1d4f1e6](https://github.com/un-rust/template/commit/1d4f1e6))
112-
113-
### 🏡 Chore
114-
115-
- Update CHANGELOG for version 2.0.1 and bump package version ([f1b2081](https://github.com/un-rust/template/commit/f1b2081))
116-
- Bump version to 2.0.2 ([3005fb0](https://github.com/un-rust/template/commit/3005fb0))
117-
118-
### ❤️ Contributors
119-
120-
- Hyq <betterhyq@qq.com>
121-
122-
## v2.0.1
123-
124-
[compare changes](https://github.com/un-rust/template/compare/v2.0.1...v2.0.1)
125-
126-
## v2.0.0
127-
128-
[compare changes](https://github.com/un-rust/template/compare/v2.0.0...v2.0.0)
129-
130-
## v1.0.3
131-
132-
[compare changes](https://github.com/un-rust/template/compare/v1.0.3...v1.0.3)
133-
134-
### 🏡 Chore
135-
136-
- Enhance bump script to support version type arguments and improve version handling ([1a9e7ef](https://github.com/un-rust/template/commit/1a9e7ef))
137-
- Add ESLint configuration and update package.json with new devDependencies ([bc934b3](https://github.com/un-rust/template/commit/bc934b3))
138-
- Update lefthook configuration and package dependencies, add TypeScript linting support ([ce7047d](https://github.com/un-rust/template/commit/ce7047d))
139-
140-
### ❤️ Contributors
141-
142-
- Hyq <betterhyq@qq.com>

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[package]
2-
name = "package-name"
3-
version = "3.1.2"
2+
name = "find-cargo-toml"
3+
version = "1.0.0"
44
authors = [ "YONGQI <betterhyq@qq.com>" ]
55
edition = "2024"
6-
description = "A template for a new Rust project"
7-
documentation = "https://docs.rs/package-name"
6+
description = "Find Cargo.toml by walking up the directory tree"
7+
documentation = "https://docs.rs/find-cargo-toml"
88
readme = "README.md"
9-
homepage = "https://github.com/un-rust/package-name"
10-
repository = "https://github.com/un-rust/package-name"
9+
homepage = "https://github.com/un-rust/find-cargo-toml"
10+
repository = "https://github.com/un-rust/find-cargo-toml"
1111
license = "Apache-2.0"
12-
keywords = [ ]
12+
keywords = [ "cargo", "toml", "find", "directory", "tree" ]
1313
categories = [ "development-tools" ]
1414
rust-version = "1.85.0"
1515

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
# package-name
1+
# find-cargo-toml
22

33
<!-- automdrs:badges showCrateVersion="true" showCrateDownloads="true" showCrateDocs="true" showCommitActivity="true" showRepoStars="true" -->
4-
![Crates.io Version](https://img.shields.io/crates/v/package-name)
5-
![Crates.io Total Downloads](https://img.shields.io/crates/d/package-name)
6-
![docs.rs](https://img.shields.io/docsrs/package-name)
7-
![GitHub commit activity](https://img.shields.io/github/commit-activity/m/un-rust/package-name)
8-
![GitHub Repo stars](https://img.shields.io/github/stars/un-rust/package-name)
4+
![Crates.io Version](https://img.shields.io/crates/v/find-cargo-toml)
5+
![Crates.io Total Downloads](https://img.shields.io/crates/d/find-cargo-toml)
6+
![docs.rs](https://img.shields.io/docsrs/find-cargo-toml)
7+
![GitHub commit activity](https://img.shields.io/github/commit-activity/m/un-rust/find-cargo-toml)
8+
![GitHub Repo stars](https://img.shields.io/github/stars/un-rust/find-cargo-toml)
99
<!-- /automdrs -->
1010

1111
<!-- automdrs:description -->
1212

13-
A template for a new Rust project
13+
Find Cargo.toml by walking up the directory tree
1414

1515
<!-- /automdrs -->
1616

17-
**[Full documentation →](https://docs.rs/package-name/)**
17+
**[Full documentation →](https://docs.rs/find-cargo-toml/)**
1818

1919
## Quick start
2020

2121
<!-- automdrs:cargo-add -->
2222

2323
```sh
24-
cargo add package-name
24+
cargo add find-cargo-toml
2525
```
2626

2727
<!-- /automdrs -->
@@ -30,7 +30,7 @@ cargo add package-name
3030

3131
<!-- automdrs:file src="./src/main.rs" -->
3232
```rust
33-
use package_name::hello;
33+
use find_cargo_toml::hello;
3434

3535
fn main() {
3636
println!("{}", hello("un-rust"));
@@ -44,8 +44,8 @@ fn main() {
4444
Published under the [Apache-2.0](./LICENSE) license.
4545
Made by [@UnRUST](https://github.com/un-rust) 💛
4646
<br><br>
47-
<a href="https://github.com/un-rust/package-name/graphs/contributors">
48-
<img src="https://contrib.rocks/image?repo=un-rust/package-name" />
47+
<a href="https://github.com/un-rust/find-cargo-toml/graphs/contributors">
48+
<img src="https://contrib.rocks/image?repo=un-rust/find-cargo-toml" />
4949
</a>
5050
<!-- /automdrs -->
5151

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "package-name",
2+
"name": "find-cargo-toml",
33
"type": "module",
44
"scripts": {
55
"build": "cargo build",

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use package_name::hello;
1+
use find_cargo_toml::hello;
22

33
fn main() {
44
println!("{}", hello("un-rust"));

tests/integration_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Minimal integration test so the template demonstrates the `tests/` layout.
22
//! Run with: `cargo test --test integration_test`
33
4-
use package_name::hello;
4+
use find_cargo_toml::hello;
55

66
#[test]
77
fn hello_returns_greeting() {

0 commit comments

Comments
 (0)