diff --git a/.gitignore b/.gitignore index b24970f0..bc8d445b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,3 @@ -debian/* -!debian/changelog -!debian/control -!debian/copyright -!debian/install -!debian/rules -!debian/source .cargo .idea Cargo.lock diff --git a/just/packaging.just b/just/packaging.just deleted file mode 100644 index 3c911e6b..00000000 --- a/just/packaging.just +++ /dev/null @@ -1,9 +0,0 @@ -[private] -install-cmd options src dest: - install {{options}} {{src}} {{dest}} - -[private] -install-bin src dest: (install-cmd '-Dm0755' src dest) - -[private] -install-file src dest: (install-cmd '-Dm0644' src dest) diff --git a/just/rust.just b/just/rust.just deleted file mode 100644 index b80031a0..00000000 --- a/just/rust.just +++ /dev/null @@ -1,39 +0,0 @@ -# Use mold linker if clang and mold exists. -clang-path := `which clang || true` -mold-path := `which mold || true` - -linker-arg := if clang-path != '' { - if mold-path != '' { - '-C linker=' + clang-path + ' -C link-arg=--ld-path=' + mold-path + ' ' - } else { - '' - } -} else { - '' -} - -export RUSTFLAGS := linker-arg + env_var_or_default('RUSTFLAGS', '') - -[private] -default: build-release - -# Compile with release profile -build-release *args: (build '--release' args) - -# Compile with a vendored tarball -build-vendored *args: vendor-extract (build-release '--offline --locked' args) - -# Vendor Cargo dependencies locally -vendor *args: - rm -rf .cargo vendor vendor.tar - mkdir -p .cargo - cargo vendor {{args}} | head -n -1 > .cargo/config - echo 'directory = "vendor"' >> .cargo/config - tar pcf vendor.tar vendor - rm -rf vendor - -# Extracts vendored dependencies -[private] -vendor-extract: - rm -rf vendor - tar pxf vendor.tar