mirror of
https://github.com/babichjacob/ac-qu-ai-nt.git
synced 2025-10-02 16:57:53 -04:00
Compare commits
73 Commits
e4e2efafb9
...
ac-qu-ai-n
Author | SHA1 | Date | |
---|---|---|---|
![]() |
cf2311b250 | ||
![]() |
8e172b8aaa | ||
![]() |
cd06bc3504 | ||
![]() |
e170f2e67a | ||
![]() |
bade8b8897 | ||
![]() |
68d6250438 | ||
![]() |
47fc0cbbed | ||
![]() |
f418955f23 | ||
![]() |
d80d43d330 | ||
![]() |
7e1bd57b98 | ||
![]() |
44d8066d8c | ||
![]() |
0849726ef6 | ||
![]() |
95e764f8cc | ||
![]() |
cf7d4aca1c | ||
![]() |
76ba24a895 | ||
![]() |
44790c9706 | ||
![]() |
970aeb6dc1 | ||
![]() |
ab03d078d1 | ||
![]() |
54ae1dd8ba | ||
![]() |
eab33bcf08 | ||
![]() |
10b798580d | ||
![]() |
870af4adad | ||
![]() |
179eeab601 | ||
![]() |
feb0d150c4 | ||
![]() |
dc17a8c5cd | ||
![]() |
900b39d29b | ||
![]() |
4e159f7b71 | ||
![]() |
87ebfed048 | ||
![]() |
9f34e73729 | ||
![]() |
98224e6008 | ||
![]() |
4ea63f731e | ||
![]() |
062c31bd9a | ||
![]() |
7d76b61c76 | ||
![]() |
83fa6398cf | ||
![]() |
18cb5043cf | ||
![]() |
dbccf23a50 | ||
![]() |
a2c3013fd5 | ||
![]() |
1175fa22d6 | ||
![]() |
13b7053386 | ||
![]() |
972129536f | ||
![]() |
ae7de503a4 | ||
![]() |
21df8d1781 | ||
![]() |
e5707cb106 | ||
![]() |
7f450568f2 | ||
![]() |
e2bf39e2c1 | ||
![]() |
e96081486a | ||
![]() |
63ffbf9f1a | ||
![]() |
65bdf6dd04 | ||
![]() |
43682dc3d3 | ||
![]() |
c25e628aa9 | ||
![]() |
1177376450 | ||
![]() |
f37d56edba | ||
![]() |
1854dc429c | ||
![]() |
3e69d65bcc | ||
![]() |
4c04f21dcb | ||
![]() |
c0ec64f06c | ||
![]() |
70e20e2e04 | ||
![]() |
12107daf6b | ||
![]() |
839f219469 | ||
![]() |
56ad1de3d4 | ||
![]() |
30dee5efa7 | ||
![]() |
52297c7b43 | ||
![]() |
b1520ae76b | ||
![]() |
ac42b4861c | ||
![]() |
499562853c | ||
![]() |
d6922c30c5 | ||
![]() |
b5935b8ab5 | ||
![]() |
5e0a2326ca | ||
![]() |
1493425540 | ||
![]() |
576a8e99c0 | ||
![]() |
01ce1e85a8 | ||
![]() |
cd788e1ab8 | ||
![]() |
65487b2378 |
175
.github/workflows/check-and-build-and-test.yml
vendored
175
.github/workflows/check-and-build-and-test.yml
vendored
@@ -3,6 +3,14 @@ name: Check, build, and test
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["main"]
|
branches: ["main"]
|
||||||
|
# This workflow is definitely expensive for GitHub,
|
||||||
|
# so let's not let files that won't affect the project's ability to build and test trigger it
|
||||||
|
paths-ignore:
|
||||||
|
- ".github/**"
|
||||||
|
- "**/.gitignore"
|
||||||
|
- "**/CHANGELOG.md"
|
||||||
|
- "**/README.md"
|
||||||
|
- "**/LICENSE-*"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: ["main"]
|
branches: ["main"]
|
||||||
|
|
||||||
@@ -10,53 +18,170 @@ env:
|
|||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-build-and-test:
|
formatting:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 15
|
timeout-minutes: 2
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Rust toolchain
|
- name: Install stable Rust toolchain
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
- name: Install Nextest
|
|
||||||
uses: taiki-e/install-action@cargo-nextest
|
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
|
||||||
|
|
||||||
- name: Check
|
|
||||||
run: cargo check --verbose
|
|
||||||
|
|
||||||
- name: Formatting
|
- name: Formatting
|
||||||
run: cargo fmt --check --verbose
|
run: cargo fmt --check --verbose
|
||||||
|
|
||||||
- name: Build
|
check-and-build:
|
||||||
run: cargo build --verbose
|
strategy:
|
||||||
|
matrix:
|
||||||
|
minimal_or_latest:
|
||||||
|
- build_command: cargo minimal-versions build --direct --verbose
|
||||||
|
cache_key: minimal
|
||||||
|
check_command: cargo minimal-versions check --direct --verbose
|
||||||
|
job_name_suffix: with minimal versions of direct dependencies
|
||||||
|
|
||||||
- name: Test
|
- build_command: cargo build --verbose
|
||||||
run: cargo nextest run
|
cache_key: latest
|
||||||
|
check_command: cargo check --verbose
|
||||||
|
job_name_suffix: (with latest (typically) versions of dependencies)
|
||||||
|
|
||||||
minimal-dependencies-check-build-and-test:
|
supporteds:
|
||||||
runs-on: ubuntu-latest
|
- runner: macos-latest
|
||||||
timeout-minutes: 15
|
target: aarch64-apple-darwin
|
||||||
|
|
||||||
|
- runner: macos-latest
|
||||||
|
target: x86_64-apple-darwin
|
||||||
|
|
||||||
|
- install_prerequisite: sudo apt-get update && sudo apt-get install musl-dev musl-tools gcc-aarch64-linux-gnu g++-aarch64-linux-gnu && sudo ln -s /bin/g++ /bin/musl-g++
|
||||||
|
runner: ubuntu-latest
|
||||||
|
target: aarch64-unknown-linux-gnu
|
||||||
|
|
||||||
|
- install_prerequisite: sudo apt-get update && sudo apt-get install musl-dev musl-tools gcc-aarch64-linux-gnu g++-aarch64-linux-gnu && sudo ln -s /bin/g++ /bin/musl-g++
|
||||||
|
runner: ubuntu-latest
|
||||||
|
target: aarch64-unknown-linux-musl
|
||||||
|
|
||||||
|
- runner: ubuntu-latest
|
||||||
|
target: x86_64-unknown-linux-gnu
|
||||||
|
|
||||||
|
- install_prerequisite: sudo apt-get update && sudo apt-get install musl-dev musl-tools && sudo ln -s /bin/g++ /bin/musl-g++
|
||||||
|
runner: ubuntu-latest
|
||||||
|
target: x86_64-unknown-linux-musl
|
||||||
|
|
||||||
|
# I would like to support this but I don't know how to install the dependencies to be able to
|
||||||
|
# - runner: windows-latest
|
||||||
|
# target: aarch64-pc-windows-gnullvm
|
||||||
|
|
||||||
|
- runner: windows-latest
|
||||||
|
target: aarch64-pc-windows-msvc
|
||||||
|
|
||||||
|
# I don't think supporting this is up to me
|
||||||
|
# I forgot where I learned this, but
|
||||||
|
# I don't think I can use a non-Rust dependency (i.e. llama.cpp) here
|
||||||
|
# - runner: windows-latest
|
||||||
|
# target: x86_64-pc-windows-gnu
|
||||||
|
|
||||||
|
- runner: windows-latest
|
||||||
|
target: x86_64-pc-windows-msvc
|
||||||
|
name: Check and build ${{ matrix.supporteds.target }} (on ${{ matrix.supporteds.runner }}) ${{ matrix.minimal_or_latest.job_name_suffix }}
|
||||||
|
runs-on: ${{ matrix.supporteds.runner }}
|
||||||
|
timeout-minutes: 5
|
||||||
|
env:
|
||||||
|
# https://github.com/rust-lang/stacker/issues/80#issuecomment-1547991131
|
||||||
|
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
|
||||||
|
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER: aarch64-linux-gnu-gcc # TODO: shouldn't this be something to do with musl, not gcc?
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Rust toolchain
|
- name: Install prerequisite build chain
|
||||||
|
if: matrix.supporteds.install_prerequisite
|
||||||
|
run: ${{ matrix.supporteds.install_prerequisite }}
|
||||||
|
|
||||||
|
- name: Install stable Rust toolchain
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
- name: Install cargo-minimal-versions
|
with:
|
||||||
|
targets: ${{ matrix.supporteds.target }}
|
||||||
|
|
||||||
|
- name: Install cargo-hack
|
||||||
uses: taiki-e/install-action@cargo-hack
|
uses: taiki-e/install-action@cargo-hack
|
||||||
- name: Install cargo-minimal-versions
|
- name: Install cargo-minimal-versions
|
||||||
uses: taiki-e/install-action@cargo-minimal-versions
|
uses: taiki-e/install-action@cargo-minimal-versions
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
shared-key: ${{ matrix.supporteds.target }}-${{ matrix.minimal_or_latest.cache_key }}
|
||||||
|
cache-on-failure: "true"
|
||||||
|
|
||||||
- name: Check (direct minimal dependencies)
|
- name: Check
|
||||||
run: cargo minimal-versions check --direct --workspace
|
run: ${{ matrix.minimal_or_latest.check_command }} --target ${{ matrix.supporteds.target }}
|
||||||
|
|
||||||
- name: Build (direct minimal dependencies)
|
- name: Build
|
||||||
run: cargo minimal-versions build --direct --workspace
|
run: ${{ matrix.minimal_or_latest.build_command }} --target ${{ matrix.supporteds.target }}
|
||||||
|
|
||||||
- name: Test (direct minimal dependencies)
|
test:
|
||||||
run: cargo minimal-versions test --direct --workspace
|
strategy:
|
||||||
|
matrix:
|
||||||
|
supporteds:
|
||||||
|
- runner: macos-latest
|
||||||
|
target: aarch64-apple-darwin
|
||||||
|
|
||||||
|
- runner: macos-latest
|
||||||
|
target: x86_64-apple-darwin
|
||||||
|
|
||||||
|
# Not able to be tested in GitHub Actions (without emulation, at least)
|
||||||
|
# - runner: ubuntu-latest
|
||||||
|
# target: aarch64-unknown-linux-gnu
|
||||||
|
|
||||||
|
# Not able to be tested in GitHub Actions (without emulation, at least)
|
||||||
|
# - runner: ubuntu-latest
|
||||||
|
# target: aarch64-unknown-linux-musl
|
||||||
|
|
||||||
|
- runner: ubuntu-latest
|
||||||
|
target: x86_64-unknown-linux-gnu
|
||||||
|
|
||||||
|
- install_prerequisite: sudo apt-get update && sudo apt-get install musl-dev musl-tools && sudo ln -s /bin/g++ /bin/musl-g++
|
||||||
|
runner: ubuntu-latest
|
||||||
|
target: x86_64-unknown-linux-musl
|
||||||
|
|
||||||
|
# Not able to be tested in GitHub Actions (without emulation, at least)
|
||||||
|
# - runner: windows-latest
|
||||||
|
# target: aarch64-pc-windows-gnullvm
|
||||||
|
|
||||||
|
# Not able to be tested in GitHub Actions (without emulation, at least)
|
||||||
|
# - runner: windows-latest
|
||||||
|
# target: aarch64-pc-windows-msvc
|
||||||
|
|
||||||
|
# I don't think supporting this is up to me
|
||||||
|
# I forgot where I learned this, but
|
||||||
|
# I don't think I can use a non-Rust dependency (i.e. llama.cpp) here
|
||||||
|
# - runner: windows-latest
|
||||||
|
# target: x86_64-pc-windows-gnu
|
||||||
|
|
||||||
|
- runner: windows-latest
|
||||||
|
target: x86_64-pc-windows-msvc
|
||||||
|
name: Test ${{ matrix.supporteds.target }} (on ${{ matrix.supporteds.runner }})
|
||||||
|
runs-on: ${{ matrix.supporteds.runner }}
|
||||||
|
timeout-minutes: 5
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install prerequisite build chain
|
||||||
|
if: matrix.supporteds.install_prerequisite
|
||||||
|
run: ${{ matrix.supporteds.install_prerequisite }}
|
||||||
|
|
||||||
|
- name: Install stable Rust toolchain
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
with:
|
||||||
|
targets: ${{ matrix.supporteds.target }}
|
||||||
|
|
||||||
|
- name: Install Nextest
|
||||||
|
uses: taiki-e/install-action@cargo-nextest
|
||||||
|
|
||||||
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
shared-key: ${{ matrix.supporteds.target }}-latest
|
||||||
|
cache-on-failure: "true"
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: cargo nextest run --target ${{ matrix.supporteds.target }}
|
||||||
|
@@ -9,21 +9,96 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
compile-and-publish:
|
compile-and-publish:
|
||||||
runs-on: ubuntu-latest
|
strategy:
|
||||||
timeout-minutes: 15
|
matrix:
|
||||||
|
supporteds:
|
||||||
|
- runner: macos-latest
|
||||||
|
target: aarch64-apple-darwin
|
||||||
|
|
||||||
|
- runner: macos-latest
|
||||||
|
target: x86_64-apple-darwin
|
||||||
|
|
||||||
|
- install_prerequisite: sudo apt-get update && sudo apt-get install musl-dev musl-tools gcc-aarch64-linux-gnu g++-aarch64-linux-gnu && sudo ln -s /bin/g++ /bin/musl-g++
|
||||||
|
runner: ubuntu-latest
|
||||||
|
target: aarch64-unknown-linux-gnu
|
||||||
|
|
||||||
|
- install_prerequisite: sudo apt-get update && sudo apt-get install musl-dev musl-tools gcc-aarch64-linux-gnu g++-aarch64-linux-gnu && sudo ln -s /bin/g++ /bin/musl-g++
|
||||||
|
runner: ubuntu-latest
|
||||||
|
target: aarch64-unknown-linux-musl
|
||||||
|
|
||||||
|
- runner: ubuntu-latest
|
||||||
|
target: x86_64-unknown-linux-gnu
|
||||||
|
|
||||||
|
- install_prerequisite: sudo apt-get update && sudo apt-get install musl-dev musl-tools && sudo ln -s /bin/g++ /bin/musl-g++
|
||||||
|
runner: ubuntu-latest
|
||||||
|
target: x86_64-unknown-linux-musl
|
||||||
|
|
||||||
|
# I would like to support this but I don't know how to install the dependencies to be able to
|
||||||
|
# - runner: windows-latest
|
||||||
|
# target: aarch64-pc-windows-gnullvm
|
||||||
|
|
||||||
|
- runner: windows-latest
|
||||||
|
target: aarch64-pc-windows-msvc
|
||||||
|
|
||||||
|
# I don't think supporting this is up to me
|
||||||
|
# I forgot where I learned this, but
|
||||||
|
# I don't think I can use a non-Rust dependency (i.e. llama.cpp) here
|
||||||
|
# - runner: windows-latest
|
||||||
|
# target: x86_64-pc-windows-gnu
|
||||||
|
|
||||||
|
- runner: windows-latest
|
||||||
|
target: x86_64-pc-windows-msvc
|
||||||
|
name: Compile ${{ matrix.supporteds.target }} for release (on ${{ matrix.supporteds.runner }})
|
||||||
|
runs-on: ${{ matrix.supporteds.runner }}
|
||||||
|
timeout-minutes: 10
|
||||||
|
env:
|
||||||
|
# https://github.com/rust-lang/stacker/issues/80#issuecomment-1547991131
|
||||||
|
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
|
||||||
|
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER: aarch64-linux-gnu-gcc # TODO: shouldn't this be something to do with musl, not gcc?
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Rust toolchain
|
- name: Install prerequisite build chain
|
||||||
|
if: matrix.supporteds.install_prerequisite
|
||||||
|
run: ${{ matrix.supporteds.install_prerequisite }}
|
||||||
|
|
||||||
|
- name: Install stable Rust toolchain
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
shared-key: ${{ matrix.supporteds.target }}-latest
|
||||||
|
cache-on-failure: "true"
|
||||||
|
|
||||||
- name: Build for release
|
- name: Build for release
|
||||||
run: cargo build --release --verbose
|
run: cargo build --release --verbose
|
||||||
|
|
||||||
- uses: taiki-e/upload-rust-binary-action@v1
|
# Have to do it like this because of https://github.com/actions/runner/issues/1985
|
||||||
|
- if: startsWith(github.event.release.tag_name, 'ac-qu-ai-nt-v')
|
||||||
|
uses: taiki-e/upload-rust-binary-action@v1
|
||||||
with:
|
with:
|
||||||
bin: ac-qu-ai-nt
|
bin: ac-qu-ai-nt
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
target: ${{ matrix.supporteds.target }}
|
||||||
|
|
||||||
|
- if: startsWith(github.event.release.tag_name, 'ac-qu-ai-nt-cli-clap-v')
|
||||||
|
uses: taiki-e/upload-rust-binary-action@v1
|
||||||
|
with:
|
||||||
|
bin: ac-qu-ai-nt-cli-clap
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
target: ${{ matrix.supporteds.target }}
|
||||||
|
|
||||||
|
- if: startsWith(github.event.release.tag_name, 'ac-qu-ai-nt-gui-eframe-v')
|
||||||
|
uses: taiki-e/upload-rust-binary-action@v1
|
||||||
|
with:
|
||||||
|
bin: ac-qu-ai-nt-gui-eframe
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
target: ${{ matrix.supporteds.target }}
|
||||||
|
|
||||||
|
- if: startsWith(github.event.release.tag_name, 'ac-qu-ai-nt-tui-ratatui-v')
|
||||||
|
uses: taiki-e/upload-rust-binary-action@v1
|
||||||
|
with:
|
||||||
|
bin: ac-qu-ai-nt-tui-ratatui
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
target: ${{ matrix.supporteds.target }}
|
||||||
|
304
Cargo.lock
generated
304
Cargo.lock
generated
@@ -4,9 +4,11 @@ version = 3
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ac-qu-ai-nt"
|
name = "ac-qu-ai-nt"
|
||||||
version = "0.0.4"
|
version = "0.0.12"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ac-qu-ai-nt-cli-clap",
|
"ac-qu-ai-nt-cli-clap",
|
||||||
|
"ac-qu-ai-nt-gui-eframe",
|
||||||
|
"ac-qu-ai-nt-tui-ratatui",
|
||||||
"clap",
|
"clap",
|
||||||
"dirs-next",
|
"dirs-next",
|
||||||
"tracing-subscriber",
|
"tracing-subscriber",
|
||||||
@@ -14,12 +16,44 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ac-qu-ai-nt-cli-clap"
|
name = "ac-qu-ai-nt-cli-clap"
|
||||||
version = "0.0.4"
|
version = "0.0.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap",
|
"clap",
|
||||||
"tracing",
|
"tracing",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "ac-qu-ai-nt-core"
|
||||||
|
version = "0.0.3"
|
||||||
|
dependencies = [
|
||||||
|
"llama-cpp-2",
|
||||||
|
"llama-cpp-sys-2",
|
||||||
|
"tracing",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "ac-qu-ai-nt-gui-eframe"
|
||||||
|
version = "0.0.5"
|
||||||
|
dependencies = [
|
||||||
|
"tracing",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "ac-qu-ai-nt-tui-ratatui"
|
||||||
|
version = "0.0.5"
|
||||||
|
dependencies = [
|
||||||
|
"tracing",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "aho-corasick"
|
||||||
|
version = "1.1.3"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916"
|
||||||
|
dependencies = [
|
||||||
|
"memchr",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "anstream"
|
name = "anstream"
|
||||||
version = "0.6.15"
|
version = "0.6.15"
|
||||||
@@ -69,18 +103,72 @@ dependencies = [
|
|||||||
"windows-sys",
|
"windows-sys",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "bindgen"
|
||||||
|
version = "0.69.4"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "a00dc851838a2120612785d195287475a3ac45514741da670b735818822129a0"
|
||||||
|
dependencies = [
|
||||||
|
"bitflags",
|
||||||
|
"cexpr",
|
||||||
|
"clang-sys",
|
||||||
|
"itertools",
|
||||||
|
"lazy_static",
|
||||||
|
"lazycell",
|
||||||
|
"log",
|
||||||
|
"prettyplease",
|
||||||
|
"proc-macro2",
|
||||||
|
"quote",
|
||||||
|
"regex",
|
||||||
|
"rustc-hash",
|
||||||
|
"shlex",
|
||||||
|
"syn",
|
||||||
|
"which",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bitflags"
|
name = "bitflags"
|
||||||
version = "2.6.0"
|
version = "2.6.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"
|
checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "cc"
|
||||||
|
version = "1.1.28"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "2e80e3b6a3ab07840e1cae9b0666a63970dc28e8ed5ffbcdacbfc760c281bfc1"
|
||||||
|
dependencies = [
|
||||||
|
"jobserver",
|
||||||
|
"libc",
|
||||||
|
"shlex",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "cexpr"
|
||||||
|
version = "0.6.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
|
||||||
|
dependencies = [
|
||||||
|
"nom",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cfg-if"
|
name = "cfg-if"
|
||||||
version = "1.0.0"
|
version = "1.0.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "clang-sys"
|
||||||
|
version = "1.8.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4"
|
||||||
|
dependencies = [
|
||||||
|
"glob",
|
||||||
|
"libc",
|
||||||
|
"libloading",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "clap"
|
name = "clap"
|
||||||
version = "4.5.18"
|
version = "4.5.18"
|
||||||
@@ -148,6 +236,42 @@ dependencies = [
|
|||||||
"winapi",
|
"winapi",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "either"
|
||||||
|
version = "1.13.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "enumflags2"
|
||||||
|
version = "0.7.10"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "d232db7f5956f3f14313dc2f87985c58bd2c695ce124c8cdd984e08e15ac133d"
|
||||||
|
dependencies = [
|
||||||
|
"enumflags2_derive",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "enumflags2_derive"
|
||||||
|
version = "0.7.10"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "de0d48a183585823424a4ce1aa132d174a6a81bd540895822eb4c8373a8e49e8"
|
||||||
|
dependencies = [
|
||||||
|
"proc-macro2",
|
||||||
|
"quote",
|
||||||
|
"syn",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "errno"
|
||||||
|
version = "0.3.9"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba"
|
||||||
|
dependencies = [
|
||||||
|
"libc",
|
||||||
|
"windows-sys",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "getrandom"
|
name = "getrandom"
|
||||||
version = "0.2.15"
|
version = "0.2.15"
|
||||||
@@ -159,30 +283,79 @@ dependencies = [
|
|||||||
"wasi",
|
"wasi",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "glob"
|
||||||
|
version = "0.3.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "heck"
|
name = "heck"
|
||||||
version = "0.5.0"
|
version = "0.5.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "home"
|
||||||
|
version = "0.5.9"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5"
|
||||||
|
dependencies = [
|
||||||
|
"windows-sys",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "is_terminal_polyfill"
|
name = "is_terminal_polyfill"
|
||||||
version = "1.70.1"
|
version = "1.70.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf"
|
checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "itertools"
|
||||||
|
version = "0.12.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569"
|
||||||
|
dependencies = [
|
||||||
|
"either",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "jobserver"
|
||||||
|
version = "0.1.32"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "48d1dbcbbeb6a7fec7e059840aa538bd62aaccf972c7346c4d9d2059312853d0"
|
||||||
|
dependencies = [
|
||||||
|
"libc",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lazy_static"
|
name = "lazy_static"
|
||||||
version = "1.5.0"
|
version = "1.5.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
|
checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "lazycell"
|
||||||
|
version = "1.3.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "libc"
|
name = "libc"
|
||||||
version = "0.2.159"
|
version = "0.2.159"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "561d97a539a36e26a9a5fad1ea11a3039a67714694aaa379433e580854bc3dc5"
|
checksum = "561d97a539a36e26a9a5fad1ea11a3039a67714694aaa379433e580854bc3dc5"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "libloading"
|
||||||
|
version = "0.8.5"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "4979f22fdb869068da03c9f7528f8297c6fd2606bc3a4affe42e6a823fdb8da4"
|
||||||
|
dependencies = [
|
||||||
|
"cfg-if",
|
||||||
|
"windows-targets",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "libredox"
|
name = "libredox"
|
||||||
version = "0.1.3"
|
version = "0.1.3"
|
||||||
@@ -193,12 +366,63 @@ dependencies = [
|
|||||||
"libc",
|
"libc",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "linux-raw-sys"
|
||||||
|
version = "0.4.14"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "llama-cpp-2"
|
||||||
|
version = "0.1.64"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "7d06b23f7c63e64ffceb0fab92746393dfbb76de41e02fd6751aeafff6a921e9"
|
||||||
|
dependencies = [
|
||||||
|
"enumflags2",
|
||||||
|
"llama-cpp-sys-2",
|
||||||
|
"thiserror",
|
||||||
|
"tracing",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "llama-cpp-sys-2"
|
||||||
|
version = "0.1.64"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "429e10ceb3c385e9094d0adb75ae976d433f53977281f598f6a7cbae8d265d50"
|
||||||
|
dependencies = [
|
||||||
|
"bindgen",
|
||||||
|
"cc",
|
||||||
|
"once_cell",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "log"
|
name = "log"
|
||||||
version = "0.4.22"
|
version = "0.4.22"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"
|
checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "memchr"
|
||||||
|
version = "2.7.4"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "minimal-lexical"
|
||||||
|
version = "0.2.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "nom"
|
||||||
|
version = "7.1.3"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
|
||||||
|
dependencies = [
|
||||||
|
"memchr",
|
||||||
|
"minimal-lexical",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "nu-ansi-term"
|
name = "nu-ansi-term"
|
||||||
version = "0.46.0"
|
version = "0.46.0"
|
||||||
@@ -236,6 +460,16 @@ version = "1.9.0"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "cc9c68a3f6da06753e9335d63e27f6b9754dd1920d941135b7ea8224f141adb2"
|
checksum = "cc9c68a3f6da06753e9335d63e27f6b9754dd1920d941135b7ea8224f141adb2"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "prettyplease"
|
||||||
|
version = "0.2.22"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "479cf940fbbb3426c32c5d5176f62ad57549a0bb84773423ba8be9d089f5faba"
|
||||||
|
dependencies = [
|
||||||
|
"proc-macro2",
|
||||||
|
"syn",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "proc-macro2"
|
name = "proc-macro2"
|
||||||
version = "1.0.86"
|
version = "1.0.86"
|
||||||
@@ -265,6 +499,54 @@ dependencies = [
|
|||||||
"thiserror",
|
"thiserror",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "regex"
|
||||||
|
version = "1.11.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "38200e5ee88914975b69f657f0801b6f6dccafd44fd9326302a4aaeecfacb1d8"
|
||||||
|
dependencies = [
|
||||||
|
"aho-corasick",
|
||||||
|
"memchr",
|
||||||
|
"regex-automata",
|
||||||
|
"regex-syntax",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "regex-automata"
|
||||||
|
version = "0.4.8"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "368758f23274712b504848e9d5a6f010445cc8b87a7cdb4d7cbee666c1288da3"
|
||||||
|
dependencies = [
|
||||||
|
"aho-corasick",
|
||||||
|
"memchr",
|
||||||
|
"regex-syntax",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "regex-syntax"
|
||||||
|
version = "0.8.5"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "rustc-hash"
|
||||||
|
version = "1.1.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "rustix"
|
||||||
|
version = "0.38.37"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "8acb788b847c24f28525660c4d7758620a7210875711f79e7f663cc152726811"
|
||||||
|
dependencies = [
|
||||||
|
"bitflags",
|
||||||
|
"errno",
|
||||||
|
"libc",
|
||||||
|
"linux-raw-sys",
|
||||||
|
"windows-sys",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "sharded-slab"
|
name = "sharded-slab"
|
||||||
version = "0.1.7"
|
version = "0.1.7"
|
||||||
@@ -274,6 +556,12 @@ dependencies = [
|
|||||||
"lazy_static",
|
"lazy_static",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "shlex"
|
||||||
|
version = "1.3.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "smallvec"
|
name = "smallvec"
|
||||||
version = "1.13.2"
|
version = "1.13.2"
|
||||||
@@ -408,6 +696,18 @@ version = "0.11.0+wasi-snapshot-preview1"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
|
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "which"
|
||||||
|
version = "4.4.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "87ba24419a2078cd2b0f2ede2691b6c66d8e47836da3b6db8265ebad47afbfc7"
|
||||||
|
dependencies = [
|
||||||
|
"either",
|
||||||
|
"home",
|
||||||
|
"once_cell",
|
||||||
|
"rustix",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "winapi"
|
name = "winapi"
|
||||||
version = "0.3.9"
|
version = "0.3.9"
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
[workspace]
|
[workspace]
|
||||||
members = ["cli-clap", "multibinary"]
|
members = ["core", "cli-clap", "gui-eframe", "tui-ratatui", "multibinary"]
|
||||||
resolver = "2"
|
resolver = "2"
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
@@ -9,4 +9,4 @@ repository = "https://github.com/babichjacob/ac-qu-ai-nt"
|
|||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
clap = "4"
|
clap = "4"
|
||||||
tracing = "0.1"
|
tracing = "0.1.23"
|
||||||
|
@@ -7,6 +7,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [0.0.8](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-cli-clap-v0.0.7...ac-qu-ai-nt-cli-clap-v0.0.8) - 2024-10-07
|
||||||
|
|
||||||
|
### Other
|
||||||
|
|
||||||
|
- update Cargo.toml dependencies
|
||||||
|
|
||||||
|
## [0.0.7](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-cli-clap-v0.0.6...ac-qu-ai-nt-cli-clap-v0.0.7) - 2024-10-06
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- move the Binstall configuration to the right spot
|
||||||
|
|
||||||
|
## [0.0.6](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-cli-clap-v0.0.5...ac-qu-ai-nt-cli-clap-v0.0.6) - 2024-10-06
|
||||||
|
|
||||||
|
### Other
|
||||||
|
|
||||||
|
- specify the correct download URLs for Binstall to work correctly
|
||||||
|
|
||||||
|
## [0.0.5](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-cli-clap-v0.0.4...ac-qu-ai-nt-cli-clap-v0.0.5) - 2024-10-05
|
||||||
|
|
||||||
|
### Other
|
||||||
|
|
||||||
|
- change `Hello, world!` to `What's up world?` to allow me to cut a release
|
||||||
|
|
||||||
## [0.0.4](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-cli-clap-v0.0.3...ac-qu-ai-nt-cli-clap-v0.0.4) - 2024-09-30
|
## [0.0.4](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-cli-clap-v0.0.3...ac-qu-ai-nt-cli-clap-v0.0.4) - 2024-09-30
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "ac-qu-ai-nt-cli-clap"
|
name = "ac-qu-ai-nt-cli-clap"
|
||||||
description = "A CLI (written with clap) for ac-qu-ai-nt"
|
description = "A CLI (written with clap) for ac-qu-ai-nt"
|
||||||
version = "0.0.4"
|
version = "0.0.8"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
rust-version = "1.76"
|
rust-version = "1.76"
|
||||||
|
|
||||||
@@ -9,6 +9,9 @@ authors = { workspace = true }
|
|||||||
license = { workspace = true }
|
license = { workspace = true }
|
||||||
repository = { workspace = true }
|
repository = { workspace = true }
|
||||||
|
|
||||||
|
[package.metadata.binstall]
|
||||||
|
pkg-url = "{ repo }/releases/download/{ name }-v{ version }/{ name }-{ target }{ archive-suffix }"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["tracing"]
|
default = ["tracing"]
|
||||||
tracing = ["dep:tracing"]
|
tracing = ["dep:tracing"]
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
pub fn main() {
|
pub fn main() {
|
||||||
#[cfg(feature = "tracing")]
|
#[cfg(feature = "tracing")]
|
||||||
tracing::info!("Hello, world!");
|
tracing::info!("What's up, world?");
|
||||||
}
|
}
|
||||||
|
53
core/CHANGELOG.md
Normal file
53
core/CHANGELOG.md
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [0.0.3](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-core-v0.0.2...ac-qu-ai-nt-core-v0.0.3) - 2024-10-07
|
||||||
|
|
||||||
|
### Other
|
||||||
|
|
||||||
|
- [**breaking**] add `llama-cpp-2` as a dependency (because it will get used in the future), possibly breaking portability (but we'll see what the GitHub Actions workflows say back)
|
||||||
|
|
||||||
|
## [0.0.2](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-core-v0.0.1...ac-qu-ai-nt-core-v0.0.2) - 2024-10-06
|
||||||
|
|
||||||
|
### Other
|
||||||
|
|
||||||
|
- release
|
||||||
|
|
||||||
|
## [0.0.1](https://github.com/babichjacob/ac-qu-ai-nt/releases/tag/ac-qu-ai-nt-core-v0.0.1) - 2024-10-06
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- initialize `core`, `gui-eframe`, and `tui-ratatui` crates and use them in the `multibinary`
|
||||||
|
|
||||||
|
### Other
|
||||||
|
|
||||||
|
- add package `description`s so that they can actually be published
|
||||||
|
- release
|
||||||
|
- run cargo fmt
|
||||||
|
|
||||||
|
## [0.0.1](https://github.com/babichjacob/ac-qu-ai-nt/releases/tag/ac-qu-ai-nt-core-v0.0.1) - 2024-10-06
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- initialize `core`, `gui-eframe`, and `tui-ratatui` crates and use them in the `multibinary`
|
||||||
|
|
||||||
|
### Other
|
||||||
|
|
||||||
|
- release
|
||||||
|
- run cargo fmt
|
||||||
|
|
||||||
|
## [0.0.1](https://github.com/babichjacob/ac-qu-ai-nt/releases/tag/ac-qu-ai-nt-core-v0.0.1) - 2024-10-06
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- initialize `core`, `gui-eframe`, and `tui-ratatui` crates and use them in the `multibinary`
|
||||||
|
|
||||||
|
### Other
|
||||||
|
|
||||||
|
- run cargo fmt
|
20
core/Cargo.toml
Normal file
20
core/Cargo.toml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
[package]
|
||||||
|
name = "ac-qu-ai-nt-core"
|
||||||
|
description = "The core library of ac-qu-ai-nt. If you're looking for the application, see cli-clap or gui-eframe or tui-ratatui or the multibinary"
|
||||||
|
version = "0.0.3"
|
||||||
|
edition = "2021"
|
||||||
|
rust-version = "1.76"
|
||||||
|
|
||||||
|
authors = { workspace = true }
|
||||||
|
license = { workspace = true }
|
||||||
|
repository = { workspace = true }
|
||||||
|
|
||||||
|
[features]
|
||||||
|
default = ["tracing"]
|
||||||
|
tracing = ["dep:tracing"]
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
llama-cpp-2 = "=0.1.64"
|
||||||
|
llama-cpp-sys-2 = "=0.1.64"
|
||||||
|
|
||||||
|
tracing = { workspace = true, optional = true }
|
1
core/src/lib.rs
Normal file
1
core/src/lib.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
|
59
gui-eframe/CHANGELOG.md
Normal file
59
gui-eframe/CHANGELOG.md
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [0.0.5](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-gui-eframe-v0.0.4...ac-qu-ai-nt-gui-eframe-v0.0.5) - 2024-10-07
|
||||||
|
|
||||||
|
### Other
|
||||||
|
|
||||||
|
- update Cargo.toml dependencies
|
||||||
|
|
||||||
|
## [0.0.4](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-gui-eframe-v0.0.3...ac-qu-ai-nt-gui-eframe-v0.0.4) - 2024-10-06
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- move the Binstall configuration to the right spot
|
||||||
|
|
||||||
|
## [0.0.3](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-gui-eframe-v0.0.2...ac-qu-ai-nt-gui-eframe-v0.0.3) - 2024-10-06
|
||||||
|
|
||||||
|
### Other
|
||||||
|
|
||||||
|
- specify the correct download URLs for Binstall to work correctly
|
||||||
|
|
||||||
|
## [0.0.2](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-gui-eframe-v0.0.1...ac-qu-ai-nt-gui-eframe-v0.0.2) - 2024-10-06
|
||||||
|
|
||||||
|
### Other
|
||||||
|
|
||||||
|
- release
|
||||||
|
|
||||||
|
## [0.0.1](https://github.com/babichjacob/ac-qu-ai-nt/releases/tag/ac-qu-ai-nt-gui-eframe-v0.0.1) - 2024-10-06
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- initialize `core`, `gui-eframe`, and `tui-ratatui` crates and use them in the `multibinary`
|
||||||
|
|
||||||
|
### Other
|
||||||
|
|
||||||
|
- add package `description`s so that they can actually be published
|
||||||
|
- release
|
||||||
|
|
||||||
|
## [0.0.1](https://github.com/babichjacob/ac-qu-ai-nt/releases/tag/ac-qu-ai-nt-gui-eframe-v0.0.1) - 2024-10-06
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- initialize `core`, `gui-eframe`, and `tui-ratatui` crates and use them in the `multibinary`
|
||||||
|
|
||||||
|
### Other
|
||||||
|
|
||||||
|
- release
|
||||||
|
|
||||||
|
## [0.0.1](https://github.com/babichjacob/ac-qu-ai-nt/releases/tag/ac-qu-ai-nt-gui-eframe-v0.0.1) - 2024-10-06
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- initialize `core`, `gui-eframe`, and `tui-ratatui` crates and use them in the `multibinary`
|
20
gui-eframe/Cargo.toml
Normal file
20
gui-eframe/Cargo.toml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
[package]
|
||||||
|
name = "ac-qu-ai-nt-gui-eframe"
|
||||||
|
description = "A GUI (written with egui / eframe) for ac-qu-ai-nt"
|
||||||
|
version = "0.0.5"
|
||||||
|
edition = "2021"
|
||||||
|
rust-version = "1.76"
|
||||||
|
|
||||||
|
authors = { workspace = true }
|
||||||
|
license = { workspace = true }
|
||||||
|
repository = { workspace = true }
|
||||||
|
|
||||||
|
[package.metadata.binstall]
|
||||||
|
pkg-url = "{ repo }/releases/download/{ name }-v{ version }/{ name }-{ target }{ archive-suffix }"
|
||||||
|
|
||||||
|
[features]
|
||||||
|
default = ["tracing"]
|
||||||
|
tracing = ["dep:tracing"]
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
tracing = { workspace = true, optional = true }
|
4
gui-eframe/src/lib.rs
Normal file
4
gui-eframe/src/lib.rs
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
pub fn main() {
|
||||||
|
#[cfg(feature = "tracing")]
|
||||||
|
tracing::info!("Hello from the eframe-based GUI!");
|
||||||
|
}
|
1
gui-eframe/src/main.rs
Normal file
1
gui-eframe/src/main.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
use ac_qu_ai_nt_gui_eframe::main;
|
@@ -7,6 +7,60 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [0.0.12](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-v0.0.11...ac-qu-ai-nt-v0.0.12) - 2024-10-07
|
||||||
|
|
||||||
|
### Other
|
||||||
|
|
||||||
|
- updated the following local packages: ac-qu-ai-nt-cli-clap, ac-qu-ai-nt-gui-eframe, ac-qu-ai-nt-tui-ratatui
|
||||||
|
|
||||||
|
## [0.0.11](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-v0.0.10...ac-qu-ai-nt-v0.0.11) - 2024-10-06
|
||||||
|
|
||||||
|
### Other
|
||||||
|
|
||||||
|
- add Binstall configuration for the multibinary
|
||||||
|
|
||||||
|
## [0.0.10](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-v0.0.9...ac-qu-ai-nt-v0.0.10) - 2024-10-06
|
||||||
|
|
||||||
|
### Other
|
||||||
|
|
||||||
|
- updated the following local packages: ac-qu-ai-nt-cli-clap, ac-qu-ai-nt-gui-eframe, ac-qu-ai-nt-tui-ratatui
|
||||||
|
|
||||||
|
## [0.0.9](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-v0.0.8...ac-qu-ai-nt-v0.0.9) - 2024-10-06
|
||||||
|
|
||||||
|
### Other
|
||||||
|
|
||||||
|
- updated the following local packages: ac-qu-ai-nt-gui-eframe, ac-qu-ai-nt-tui-ratatui
|
||||||
|
|
||||||
|
## [0.0.8](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-v0.0.7...ac-qu-ai-nt-v0.0.8) - 2024-10-06
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- initialize `core`, `gui-eframe`, and `tui-ratatui` crates and use them in the `multibinary`
|
||||||
|
|
||||||
|
## [0.0.7](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-v0.0.6...ac-qu-ai-nt-v0.0.7) - 2024-10-05
|
||||||
|
|
||||||
|
### Other
|
||||||
|
|
||||||
|
- updated the following local packages: ac-qu-ai-nt-cli-clap
|
||||||
|
|
||||||
|
## [0.0.6](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-v0.0.5...ac-qu-ai-nt-v0.0.6) - 2024-10-05
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- cover the new cases of `Command` for `GuiEframe` and `TuiRatatui`
|
||||||
|
|
||||||
|
### Other
|
||||||
|
|
||||||
|
- correctly add `gui-eframe` and `tui-ratatui` as features this time around
|
||||||
|
- add `gui-eframe` and `tui-ratatui` as subcommands with aliases `gui` and `tui` respectively
|
||||||
|
- add `gui-eframe` and `tui-ratatui` as features
|
||||||
|
|
||||||
|
## [0.0.5](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-v0.0.4...ac-qu-ai-nt-v0.0.5) - 2024-10-05
|
||||||
|
|
||||||
|
### Other
|
||||||
|
|
||||||
|
- [**breaking**] put accessing the cli under a subcommand like the README suggests it would be
|
||||||
|
|
||||||
## [0.0.4](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-v0.0.3...ac-qu-ai-nt-v0.0.4) - 2024-09-30
|
## [0.0.4](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-v0.0.3...ac-qu-ai-nt-v0.0.4) - 2024-09-30
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "ac-qu-ai-nt"
|
name = "ac-qu-ai-nt"
|
||||||
description = "A WIP project using AI to break down a user's query, acquire the knowledge to answer it, then transfer those insights to the user"
|
description = "A WIP project using AI to break down a user's query, acquire the knowledge to answer it, then transfer those insights to the user"
|
||||||
version = "0.0.4"
|
version = "0.0.12"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
rust-version = "1.76"
|
rust-version = "1.76"
|
||||||
|
|
||||||
@@ -9,13 +9,29 @@ authors = { workspace = true }
|
|||||||
license = { workspace = true }
|
license = { workspace = true }
|
||||||
repository = { workspace = true }
|
repository = { workspace = true }
|
||||||
|
|
||||||
|
[package.metadata.binstall]
|
||||||
|
pkg-url = "{ repo }/releases/download/{ name }-v{ version }/{ name }-{ target }{ archive-suffix }"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["cli-clap", "tracing"]
|
default = ["cli-clap", "gui-eframe", "tui-ratatui", "tracing"]
|
||||||
|
|
||||||
cli-clap = ["dep:ac-qu-ai-nt-cli-clap"]
|
cli-clap = ["dep:ac-qu-ai-nt-cli-clap"]
|
||||||
tracing = ["dep:tracing-subscriber", "ac-qu-ai-nt-cli-clap?/tracing"]
|
gui-eframe = ["dep:ac-qu-ai-nt-gui-eframe"]
|
||||||
|
tui-ratatui = ["dep:ac-qu-ai-nt-tui-ratatui"]
|
||||||
|
|
||||||
|
tracing = [
|
||||||
|
"dep:tracing-subscriber",
|
||||||
|
"ac-qu-ai-nt-cli-clap?/tracing",
|
||||||
|
"ac-qu-ai-nt-gui-eframe?/tracing",
|
||||||
|
"ac-qu-ai-nt-tui-ratatui?/tracing",
|
||||||
|
]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ac-qu-ai-nt-cli-clap = { version = "0.0.4", path = "../cli-clap", optional = true }
|
ac-qu-ai-nt-cli-clap = { version = "0.0.8", path = "../cli-clap", optional = true }
|
||||||
|
ac-qu-ai-nt-gui-eframe = { version = "0.0.5", path = "../gui-eframe", optional = true }
|
||||||
|
ac-qu-ai-nt-tui-ratatui = { version = "0.0.5", path = "../tui-ratatui", optional = true }
|
||||||
|
|
||||||
clap = { workspace = true, features = ["derive", "env"] }
|
clap = { workspace = true, features = ["derive", "env"] }
|
||||||
dirs-next = "2.0.0"
|
dirs-next = "2.0.0"
|
||||||
|
|
||||||
tracing-subscriber = { version = "0.3.18", optional = true }
|
tracing-subscriber = { version = "0.3.18", optional = true }
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
use std::{fs::create_dir_all, io::ErrorKind, path::PathBuf};
|
use std::{fs::create_dir_all, io::ErrorKind, path::PathBuf};
|
||||||
|
|
||||||
use clap::Parser;
|
use clap::{Parser, Subcommand};
|
||||||
|
|
||||||
#[derive(Debug, Parser)]
|
#[derive(Debug, Parser)]
|
||||||
struct Args {
|
struct Args {
|
||||||
@@ -10,11 +10,28 @@ struct Args {
|
|||||||
default_value_os_t = dirs_next::data_local_dir().expect("sorry but you're on a platform where dirs_next::data_local_dir() returned None, so please specify a data directory for the application").join("ac-qu-ai-nt")
|
default_value_os_t = dirs_next::data_local_dir().expect("sorry but you're on a platform where dirs_next::data_local_dir() returned None, so please specify a data directory for the application").join("ac-qu-ai-nt")
|
||||||
)]
|
)]
|
||||||
application_data_directory: PathBuf,
|
application_data_directory: PathBuf,
|
||||||
|
|
||||||
|
#[command(subcommand)]
|
||||||
|
command: Command,
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Debug, Subcommand)]
|
||||||
|
enum Command {
|
||||||
|
#[cfg(feature = "cli-clap")]
|
||||||
|
#[command(alias = "cli")]
|
||||||
|
CliClap,
|
||||||
|
#[cfg(feature = "gui-eframe")]
|
||||||
|
#[command(alias = "gui")]
|
||||||
|
GuiEframe,
|
||||||
|
#[cfg(feature = "tui-ratatui")]
|
||||||
|
#[command(alias = "tui")]
|
||||||
|
TuiRatatui,
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let Args {
|
let Args {
|
||||||
application_data_directory,
|
application_data_directory,
|
||||||
|
command,
|
||||||
} = Args::parse();
|
} = Args::parse();
|
||||||
|
|
||||||
#[cfg(feature = "tracing")]
|
#[cfg(feature = "tracing")]
|
||||||
@@ -38,6 +55,12 @@ fn main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
match command {
|
||||||
#[cfg(feature = "cli-clap")]
|
#[cfg(feature = "cli-clap")]
|
||||||
ac_qu_ai_nt_cli_clap::main();
|
Command::CliClap => ac_qu_ai_nt_cli_clap::main(),
|
||||||
|
#[cfg(feature = "gui-eframe")]
|
||||||
|
Command::GuiEframe => ac_qu_ai_nt_gui_eframe::main(),
|
||||||
|
#[cfg(feature = "tui-ratatui")]
|
||||||
|
Command::TuiRatatui => ac_qu_ai_nt_tui_ratatui::main(),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
59
tui-ratatui/CHANGELOG.md
Normal file
59
tui-ratatui/CHANGELOG.md
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [0.0.5](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-tui-ratatui-v0.0.4...ac-qu-ai-nt-tui-ratatui-v0.0.5) - 2024-10-07
|
||||||
|
|
||||||
|
### Other
|
||||||
|
|
||||||
|
- update Cargo.toml dependencies
|
||||||
|
|
||||||
|
## [0.0.4](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-tui-ratatui-v0.0.3...ac-qu-ai-nt-tui-ratatui-v0.0.4) - 2024-10-06
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- move the Binstall configuration to the right spot
|
||||||
|
|
||||||
|
## [0.0.3](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-tui-ratatui-v0.0.2...ac-qu-ai-nt-tui-ratatui-v0.0.3) - 2024-10-06
|
||||||
|
|
||||||
|
### Other
|
||||||
|
|
||||||
|
- specify the correct download URLs for Binstall to work correctly
|
||||||
|
|
||||||
|
## [0.0.2](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-tui-ratatui-v0.0.1...ac-qu-ai-nt-tui-ratatui-v0.0.2) - 2024-10-06
|
||||||
|
|
||||||
|
### Other
|
||||||
|
|
||||||
|
- release
|
||||||
|
|
||||||
|
## [0.0.1](https://github.com/babichjacob/ac-qu-ai-nt/releases/tag/ac-qu-ai-nt-tui-ratatui-v0.0.1) - 2024-10-06
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- initialize `core`, `gui-eframe`, and `tui-ratatui` crates and use them in the `multibinary`
|
||||||
|
|
||||||
|
### Other
|
||||||
|
|
||||||
|
- add package `description`s so that they can actually be published
|
||||||
|
- release
|
||||||
|
|
||||||
|
## [0.0.1](https://github.com/babichjacob/ac-qu-ai-nt/releases/tag/ac-qu-ai-nt-tui-ratatui-v0.0.1) - 2024-10-06
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- initialize `core`, `gui-eframe`, and `tui-ratatui` crates and use them in the `multibinary`
|
||||||
|
|
||||||
|
### Other
|
||||||
|
|
||||||
|
- release
|
||||||
|
|
||||||
|
## [0.0.1](https://github.com/babichjacob/ac-qu-ai-nt/releases/tag/ac-qu-ai-nt-tui-ratatui-v0.0.1) - 2024-10-06
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- initialize `core`, `gui-eframe`, and `tui-ratatui` crates and use them in the `multibinary`
|
20
tui-ratatui/Cargo.toml
Normal file
20
tui-ratatui/Cargo.toml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
[package]
|
||||||
|
name = "ac-qu-ai-nt-tui-ratatui"
|
||||||
|
description = "A TUI (written with Ratatui) for ac-qu-ai-nt"
|
||||||
|
version = "0.0.5"
|
||||||
|
edition = "2021"
|
||||||
|
rust-version = "1.76"
|
||||||
|
|
||||||
|
authors = { workspace = true }
|
||||||
|
license = { workspace = true }
|
||||||
|
repository = { workspace = true }
|
||||||
|
|
||||||
|
[package.metadata.binstall]
|
||||||
|
pkg-url = "{ repo }/releases/download/{ name }-v{ version }/{ name }-{ target }{ archive-suffix }"
|
||||||
|
|
||||||
|
[features]
|
||||||
|
default = ["tracing"]
|
||||||
|
tracing = ["dep:tracing"]
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
tracing = { workspace = true, optional = true }
|
4
tui-ratatui/src/lib.rs
Normal file
4
tui-ratatui/src/lib.rs
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
pub fn main() {
|
||||||
|
#[cfg(feature = "tracing")]
|
||||||
|
tracing::info!("This is from the TUI based on Ratatui.");
|
||||||
|
}
|
1
tui-ratatui/src/main.rs
Normal file
1
tui-ratatui/src/main.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
use ac_qu_ai_nt_tui_ratatui::main;
|
Reference in New Issue
Block a user