treewide: rewrite everything in Rust

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I786da853078e1013bb8f463ed9e9869c6a6a6964
This commit is contained in:
raf 2026-05-11 12:08:49 +03:00
commit ea96477830
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
43 changed files with 5993 additions and 4594 deletions

View file

@ -1,8 +1,9 @@
{
lib,
buildGoModule,
rustPlatform,
pkg-config,
}:
buildGoModule (finalAttrs: {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "ncro";
version = "1.0.0";
@ -13,15 +14,14 @@ buildGoModule (finalAttrs: {
fs.toSource {
root = s;
fileset = fs.unions [
(s + /cmd)
(s + /internal)
(s + /go.mod)
(s + /go.sum)
(s + /src)
(s + /Cargo.toml)
(s + /Cargo.lock)
];
};
vendorHash = "sha256-9OkQIj2g5mZ+IpjIKvy8Il7J4xL4PJimEsXJP10FhmU=";
ldflags = ["-s" "-w" "-X main.version=${finalAttrs.version}"];
cargoLock.lockFile = "${finalAttrs.src}/Cargo.lock";
nativeBuildInputs = [pkg-config];
meta = {
mainProgram = "ncro";