9 Commits
Author SHA1 Message Date
melfely 582c4a6905 fix: Add registry force in the dependencies of cargo section
Release-plz / Release-plz PR (push) Successful in 1m33s
Release-plz / Release-plz release (push) Successful in 1m35s
2026-09-11 10:56:22 -05:00
melfely 2a93781fd4 ci: added release-plz.toml file
Release-plz / Release-plz PR (push) Failing after 1m27s
Release-plz / Release-plz release (push) Failing after 1m33s
2026-09-11 10:41:18 -05:00
melfely 405804aac1 fix(bin): Added version for lib requirement
Release-plz / Release-plz PR (push) Successful in 1m24s
Release-plz / Release-plz release (push) Failing after 1m35s
2026-09-11 10:29:28 -05:00
melfely cba3620268 Merge pull request 'chore(example_bin): release v0.1.1' (#5) from release-plz-2026-09-11T14-51-37Z into melfely/release-plz
Release-plz / Release-plz PR (push) Successful in 1m18s
Release-plz / Release-plz release (push) Failing after 1m29s
Reviewed-on: #5
2026-09-11 15:21:38 +00:00
ci-bot 117b102407 chore(example_bin): release v0.1.1
Signed-off-by: ci-bot <bot@email.melfely.com>
2026-09-11 14:51:37 +00:00
melfely b62d25c6d5 ci: Revert previous. Fixed "secret." to "secrets." for git credentials
Release-plz / Release-plz release (push) Successful in 1m26s
Release-plz / Release-plz PR (push) Successful in 1m33s
2026-09-11 09:49:27 -05:00
melfely 65b043fe9c ci: Changed from direct secret sub to env variables
Release-plz / Release-plz release (push) Successful in 1m25s
Release-plz / Release-plz PR (push) Failing after 1m29s
2026-09-11 09:41:20 -05:00
melfely 4f96a3572d feat: bin example now references the local example_lib
Release-plz / Release-plz release (push) Successful in 1m31s
Release-plz / Release-plz PR (push) Failing after 1m32s
2026-09-10 21:16:57 -05:00
melfely 02f9bbd817 Merge pull request 'chore(example_lib): release v0.1.1' (#4) from release-plz-2026-09-11T01-35-29Z into melfely/release-plz
Release-plz / Release-plz PR (push) Successful in 2m25s
Release-plz / Release-plz release (push) Successful in 2m27s
Reviewed-on: #4
2026-09-11 02:09:52 +00:00
3 changed files with 3 additions and 57 deletions
+2 -56
View File
@@ -1,57 +1,3 @@
# Rust Workspace Template with Pre-Configured Workflows
This Setup does ALOT of checking and analyis before letting you push to main/master. Requiring a massive amount of Cross-Platform support.
## Why?
This automates everything from linting, to CI/CD. This allows us to just work on projects, as long as we follow the rules, without having to worry about deployement.
Fully automating out an entire departement in most companies called DevOps.
**You just need to pay attention to the following**
## How to use properly.
This is an EXAMPLE workspace, look around at the how the Cargo.Toml files are setup, they are important. Once you get comfortable, delete the existing stuff, and start making your own.
A few major points.
### Git Commits
This uses a tool to auto generate change logs and version indexing. As LONG as you feed it good data, one of such requirements are good commits
This project **REQUIRES** you to use the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) format. This allows for a whole HOST of good automated tooling. That you will love, in comparison to doing it all by hand. WHILE adding a bit of a requirement to making good split up commits.
Any commits **not** following this standard should be rejected or reworded. If a commit is *to large* or some other problem to not fit the mold. Then change the commit, do **NOT** break the rules.
### Gitea Registry
We don't publish to crates.io, instead we publish to the pre-configured gitea crates repo. Which keeps everything private. Does have the disadvantage of reqiuring a bit of extra work to use.
In the example_bin Cargo.toml file you can see
```toml
example_lib = { version = "0.1.1", path = "../example_lib", registry = "gitea" }
```
This line is VERY important, it uses a PATH based dependency to find the project. Which allows for it to be live.
Note that the version number will need to be updated, along WITH the fact that you need to make sure that it uses the "gitea" regsitry here as well. That is where cargo will expect to find it at later.
### Workspace
in the root level Cargo.toml is the workspace config
```toml
[workspace]
resolver = "3"
members = ["example_bin", "example_lib"]
```
notice how it LISTS all the crates that are members of the workspace? That is important!
### Cargo Lock files
All of the workflow tools remotely use --locked versions of cargo build and check, so therefore it **CANNOT** update the lock files.
The lock files are what versions of a package you are using when it was built. This is all about the philophsy of [reproducible builds](https://reproducible-builds.org/)
# rust_workflow_template
Rust Cargo Template with CI/CD Setup.
+1 -1
View File
@@ -4,4 +4,4 @@ version = "0.1.1"
edition = "2024"
[dependencies]
example_lib = { path = "../example_lib" }
example_lib = { version = "0.1.1", path = "../example_lib", registry = "gitea" }
View File