From 7757552bdc934eb58fe33b2f8db338c98d054e28 Mon Sep 17 00:00:00 2001 From: eric Date: Thu, 18 Apr 2024 16:39:58 +0800 Subject: [PATCH] refactor: rename leaf-bin -> leaf-cli --- Cargo.toml | 4 ++-- Makefile | 8 ++++---- {leaf-bin => leaf-cli}/Cargo.toml | 2 +- {leaf-bin => leaf-cli}/src/main.rs | 0 4 files changed, 7 insertions(+), 7 deletions(-) rename {leaf-bin => leaf-cli}/Cargo.toml (96%) rename {leaf-bin => leaf-cli}/src/main.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index cea821c..fa6ace8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,11 @@ [workspace] members = [ "leaf", - "leaf-bin", + "leaf-cli", "leaf-ffi", "leaf-plugins/shadowsocks", ] -default-members = ["leaf-bin"] +default-members = ["leaf-cli"] resolver = "2" [profile.release] diff --git a/Makefile b/Makefile index 6cdbd73..ae59c80 100644 --- a/Makefile +++ b/Makefile @@ -5,11 +5,11 @@ export CFG_COMMIT_HASH := $(CFG_COMMIT_HASH) CFG_COMMIT_DATE := $(shell git log --format="%ci" -n 1) export CFG_COMMIT_DATE := $(CFG_COMMIT_DATE) -local: - cargo build -p leaf-bin --release +cli: + cargo build -p leaf-cli --release -local-dev: - cargo build -p leaf-bin +cli-dev: + cargo build -p leaf-cli test: cargo test -p leaf -- --nocapture diff --git a/leaf-bin/Cargo.toml b/leaf-cli/Cargo.toml similarity index 96% rename from leaf-bin/Cargo.toml rename to leaf-cli/Cargo.toml index b2fb09f..3762776 100644 --- a/leaf-bin/Cargo.toml +++ b/leaf-cli/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "leaf-bin" +name = "leaf-cli" version = "0.10.10" authors = ["eycorsican "] edition = "2021" diff --git a/leaf-bin/src/main.rs b/leaf-cli/src/main.rs similarity index 100% rename from leaf-bin/src/main.rs rename to leaf-cli/src/main.rs