Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
[*] add build tool
Browse files Browse the repository at this point in the history
  • Loading branch information
heng30 committed Nov 18, 2023
1 parent 2711d6f commit 31242bc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@ resolver = "2"
members = [
"chatbox"
]

[profile.dev]
opt-level = 1

[profile.dev.package."*"]
opt-level = 3
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

build-evn=SLINT_STYLE=fluent
run-evn=RUST_LOG=error,warn,info,debug,reqwest=on

all:
SLINT_STYLE=fluent cargo build --release

Expand All @@ -22,6 +25,12 @@ run-local:
run-local-release:
RUST_LOG=error,warn,info,debug,reqwest=on ./target/release/chatbox

mold:
$(build-evn) mold -run cargo build --release

mold-debug:
$(build-evn) mold -run cargo build

clippy:
cargo clippy

Expand Down

0 comments on commit 31242bc

Please sign in to comment.