Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/nix-rust-templatePublic template

template for rust projects with nix

License

NotificationsYou must be signed in to change notification settings

j-brn/nix-rust-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Features

  • workspace support
  • build withcrane
  • most recent and/or custom rust toolchain withfenix
  • cargo clippy, fmt, test, doc and audit as flake checks
  • complete Github CI with automatic lockfile updates, flake checks, build
  • automatic bundling of releases (deb, rpm, pacman, AppImage, Docker) for aarch64-linux and x86_64-linux

Prerequisites

Getting started

  • click "use this template" to create your repository
  • rename or remove the existing crates
    • rename or recreate all crates undercrates/ with names of your choosing
    • inCargo.toml change the paths in the[members] field to the crates you just created/renamed
    • in.github/workflows/ci.yml replace/delete "client" and "server" in the job matrix for "bundle" amd "build"
    • inflake.nix
      • replace/delete "client-package" and "server-package" with "$name-package"
      • replace/deletepackages.client andpackages.server topackages.$name
      • replace/delete theinherit client-package server-package in the devShell section with the new names andadd/remove any crates you added/removed
  • create the repository secretGH_TOKEN_FOR_UPDATES with your personal GitHub access token or replace${{ secrets.GH_TOKEN_FOR_UPDATES }} with${{ secrets.GITHUB_TOKEN }} in.github/workflows/update.yml
  • (optional) enable theRenovate bot for automatic rust and actions dependency updatesor deleterenovate.json
  • (optional) allow direnv to run:direnv allow

Usage

  • nix build to build
  • nix flake check to run tests
  • nix develop to enter the dev shell (happens automatically when using direnv)

Planned Features

  • darwin support
  • cross compilation for windows
  • code coverage checks
  • actions/scripts to automate most of [Getting Started]

[8]ページ先頭

©2009-2025 Movatter.jp