1
0
Fork 0

Init from template

bin
ltdk 2 years ago
commit 7af6b2a058
  1. 11
      .editorconfig
  2. 6
      .gitea/template
  3. 3
      .gitignore
  4. 11
      CHANGELOG.md
  5. 7
      Cargo.lock
  6. 29
      Cargo.toml
  7. 29
      LICENSE.md
  8. 9
      Makefile
  9. 10
      README.md
  10. 1
      src/lib.rs
  11. 5
      src/main.rs

@ -0,0 +1,11 @@
root = true
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
[*.rs]
indent_size = 4
indent_style = space
max_line_length = 100

@ -0,0 +1,6 @@
Cargo.toml
Cargo.lock
CHANGELOG.md
Makefile
README.md
src/*.rs

3
.gitignore vendored

@ -0,0 +1,3 @@
*.tar.xz
/target
*.rs.bk

@ -0,0 +1,11 @@
This project uses a **major**.**minor**.**micro** versioning scheme, where:
* Bumping the major version resets the minor version to zero.
* Bumping the minor version resets the micro version to zero.
* The major version is bumped if the output format or behaviour of the `${REPO_NAME}` binary changes, or there are breaking changes to the `${REPO_NAME}` crate as defined by Rust RFC 1122.
* The minor version is bumped on minor changes to the `${REPO_NAME}` crate, as defined by Rust RFC 1122.
* The micro version is bumped in all other cases.
# v1.0.0
This is the first release.

7
Cargo.lock generated

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "${REPO_NAME}"
version = "1.0.0"

@ -0,0 +1,29 @@
[package]
name = "${REPO_NAME}"
version = "1.0.0"
authors = ["ltdk <usr@ltdk.xyz>"]
edition = "2021"
description = "${REPO_DESCRIPTION}"
readme = "README.md"
repository = "https://vc.ltdk.xyz/${REPO_OWNER}/${REPO_NAME}"
license-file = "LICENSE.md"
categories = []
include = ["src/**/*", "LICENSE", "README.md", "CHANGELOG.md"]
[dependencies]
[dev-dependencies]
[features]
default = []
[profile.release]
opt-level = "s"
debug = false
lto = true
panic = "abort"
codegen-units = 1
[[bin]]
name = "${REPO_NAME}"
path = "src/main.rs"

@ -0,0 +1,29 @@
# ANTI-CAPITALIST SOFTWARE LICENSE (v 1.4)
Copyright © 2020 ltdk.xyz
This is anti-capitalist software, released for free use by individuals and organizations that do
not operate by capitalist principles.
Permission is hereby granted, free of charge, to any person or organization (the "User") obtaining
a copy of this software and associated documentation files (the "Software"), to use, copy, modify,
merge, distribute, and/or sell copies of the Software, subject to the following conditions:
1. The above copyright notice and this permission notice shall be included in all copies or
modified versions of the Software.
2. The User is one of the following:
a. An individual person, laboring for themselves
b. A non-profit organization
c. An educational institution
d. An organization that seeks shared profit for all of its members, and allows non-members to
set the cost of their labor
3. If the User is an organization with owners, then all owners are workers and all workers are
owners with equal equity and/or equal vote.
4. If the User is an organization, then the User is not law enforcement or military, or working
for or under either.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND, INCLUDING BUT
NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

@ -0,0 +1,9 @@
PROJECT = ${REPO_NAME}
VERSION = $(shell git describe)
FILES = $(shell git ls-files src/ Cargo.toml Cargo.lock README.md LICENSE.md CHANGELOG.md Makefile)
dist: $(PROJECT)-$(VERSION).tar.xz
$(PROJECT)-$(VERSION).tar.xz: $(FILES)
rm -f $(PROJECT)-$(VERSION).tar.xz
tar c -f - $(FILES) | xz -9 > $(PROJECT)-$(VERSION).tar.xz

@ -0,0 +1,10 @@
# ${REPO_NAME}
${REPO_DESCRIPTION}
## License
Available via the [Anti-Capitalist Software License][ACSL] for individuals, non-profit
organisations, and worker-owned businesses.
[ACSL]: ./LICENSE.md

@ -0,0 +1 @@
//! ${REPO_DESCRIPTION}

@ -0,0 +1,5 @@
use std::io;
fn main() -> io::Result<()> {
Ok(())
}
Loading…
Cancel
Save