Initial project structure
This commit is contained in:
10 files changed
+110
No files matched your search
@@ -0,0 +1 @@
|
|||||||
|
/target
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
# Agent Instructions
|
||||||
|
|
||||||
|
## Commit Policy
|
||||||
|
|
||||||
|
Automatically commit changes once a full feature, bugfix, refactor, or other
|
||||||
|
coherent unit of work is finished. Do not wait for the user to ask for a commit.
|
||||||
|
|
||||||
|
## Versioning Policy
|
||||||
|
|
||||||
|
Only update the version, when the user explicitly asks for it.
|
||||||
|
|
||||||
|
### Guidelines for how to update the version
|
||||||
|
|
||||||
|
1. Use `cargo set-version` to bump the version. Decide, based on the actual
|
||||||
|
changes, based on semver semantics, if major, minor or patch needs to be
|
||||||
|
bumped.
|
||||||
|
2. Update the CHANGELOG.md file accordingly.
|
||||||
|
3. Create a release commit.
|
||||||
|
4. Tag the release commit in the style of previous versioning tags.
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
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.1.0/),
|
||||||
|
and this project adheres to
|
||||||
|
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
Generated
+7
@@ -0,0 +1,7 @@
|
|||||||
|
# This file is automatically @generated by Cargo.
|
||||||
|
# It is not intended for manual editing.
|
||||||
|
version = 4
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "ghostty-rs"
|
||||||
|
version = "0.1.0"
|
||||||
+33
@@ -0,0 +1,33 @@
|
|||||||
|
[package]
|
||||||
|
name = "ghostty-rs"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2024"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
|
||||||
|
[lints.clippy]
|
||||||
|
pedantic = { level = "warn", priority = -1 }
|
||||||
|
todo = "warn"
|
||||||
|
unwrap_used = "warn"
|
||||||
|
|
||||||
|
[lints.rust]
|
||||||
|
unsafe_code = "forbid"
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
debug = true
|
||||||
|
strip = false
|
||||||
|
debug-assertions = true
|
||||||
|
overflow-checks = true
|
||||||
|
lto = false
|
||||||
|
panic = "unwind"
|
||||||
|
incremental = true
|
||||||
|
|
||||||
|
[profile.production]
|
||||||
|
inherits = "release"
|
||||||
|
debug = false
|
||||||
|
strip = true
|
||||||
|
debug-assertions = false
|
||||||
|
overflow-checks = false
|
||||||
|
lto = true
|
||||||
|
incremental = false
|
||||||
|
codegen-units = 1
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
set positional-arguments
|
||||||
|
|
||||||
|
run *args:
|
||||||
|
cargo run -- "$@"
|
||||||
|
|
||||||
|
build:
|
||||||
|
cargo build
|
||||||
|
|
||||||
|
build-release:
|
||||||
|
cargo build --release
|
||||||
|
|
||||||
|
build-production:
|
||||||
|
cargo build --profile production
|
||||||
|
|
||||||
|
fmt:
|
||||||
|
cargo +nightly fmt
|
||||||
|
tombi format
|
||||||
|
fd -tf -e md -x prettier --write --prose-wrap always --print-width 80
|
||||||
|
rumdl check --flavor commonmark --fix
|
||||||
|
just --fmt
|
||||||
|
|
||||||
|
_fix:
|
||||||
|
cargo fix --workspace --all-targets --all-features
|
||||||
|
cargo clippy --fix --workspace --all-targets --all-features
|
||||||
|
|
||||||
|
fix: _fix fmt
|
||||||
|
|
||||||
|
clippy:
|
||||||
|
cargo clippy --workspace --all-targets --all-features -- -D warnings
|
||||||
|
|
||||||
|
test:
|
||||||
|
cargo test --workspace --all-targets --all-features
|
||||||
|
|
||||||
|
clean:
|
||||||
|
cargo clean
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
group_imports = "StdExternalCrate"
|
||||||
|
imports_granularity = "Crate"
|
||||||
|
imports_layout = "HorizontalVertical"
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
fn main() {
|
||||||
|
println!("Hello, world!");
|
||||||
|
}
|
||||||
Reference in new issue
Block a user