rename rust/ to taskchampion/
2
.github/CODEOWNERS
vendored
|
@ -1,3 +1,3 @@
|
||||||
rust/* @dbr @djmitche
|
taskchampion/* @dbr @djmitche
|
||||||
Cargo.toml @dbr @djmitche
|
Cargo.toml @dbr @djmitche
|
||||||
Cargo.lock @dbr @djmitche
|
Cargo.lock @dbr @djmitche
|
||||||
|
|
4
.github/workflows/checks.yml
vendored
|
@ -59,8 +59,8 @@ jobs:
|
||||||
# if this changes, change it in cli/Cargo.toml and .github/workflows/publish-docs.yml as well
|
# if this changes, change it in cli/Cargo.toml and .github/workflows/publish-docs.yml as well
|
||||||
mdbook-version: '0.4.10'
|
mdbook-version: '0.4.10'
|
||||||
|
|
||||||
- run: mdbook test rust/docs
|
- run: mdbook test taskchampion/docs
|
||||||
- run: mdbook build rust/docs
|
- run: mdbook build taskchampion/docs
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
10
Cargo.toml
|
@ -1,11 +1,11 @@
|
||||||
[workspace]
|
[workspace]
|
||||||
|
|
||||||
members = [
|
members = [
|
||||||
"rust/taskchampion",
|
"taskchampion/taskchampion",
|
||||||
"rust/sync-server",
|
"taskchampion/sync-server",
|
||||||
"rust/lib",
|
"taskchampion/lib",
|
||||||
"rust/integration-tests",
|
"taskchampion/integration-tests",
|
||||||
"rust/xtask",
|
"taskchampion/xtask",
|
||||||
]
|
]
|
||||||
|
|
||||||
# src/tc/rust is just part of the TW build and not a public crate
|
# src/tc/rust is just part of the TW build and not a public crate
|
||||||
|
|
|
@ -23,7 +23,7 @@ The implementation, including more documentation, is in the [`rust`](../../rust)
|
||||||
Taskwarrior's interface to TaskChampion has a few laters:
|
Taskwarrior's interface to TaskChampion has a few laters:
|
||||||
|
|
||||||
* The skeletal Rust crate in [`src/tc/rust`](../../src/tc/rust) brings the symbols from `taskchampion-lib` under CMake's management.
|
* The skeletal Rust crate in [`src/tc/rust`](../../src/tc/rust) brings the symbols from `taskchampion-lib` under CMake's management.
|
||||||
The corresponding header file is included from [`rust/lib`](../../rust/lib).
|
The corresponding header file is included from [`taskchampion/lib`](../../taskchampion/lib).
|
||||||
All of these symbols are placed in the C++ namespace, `tc::ffi`.
|
All of these symbols are placed in the C++ namespace, `tc::ffi`.
|
||||||
* C++ wrappers for the types from `taskchampion-lib` are defined in [`src/tc`](../../src/tc), ensuring memory safety (with `unique_ptr`) and adding methods corresponding to the Rust API's methods.
|
* C++ wrappers for the types from `taskchampion-lib` are defined in [`src/tc`](../../src/tc), ensuring memory safety (with `unique_ptr`) and adding methods corresponding to the Rust API's methods.
|
||||||
The wrapper types are in the C++ namespace, `tc`.
|
The wrapper types are in the C++ namespace, `tc`.
|
||||||
|
|
|
@ -5,7 +5,7 @@ include_directories (${CMAKE_SOURCE_DIR}
|
||||||
${CMAKE_SOURCE_DIR}/src/commands
|
${CMAKE_SOURCE_DIR}/src/commands
|
||||||
${CMAKE_SOURCE_DIR}/src/columns
|
${CMAKE_SOURCE_DIR}/src/columns
|
||||||
${CMAKE_SOURCE_DIR}/src/libshared/src
|
${CMAKE_SOURCE_DIR}/src/libshared/src
|
||||||
${CMAKE_SOURCE_DIR}/rust/lib
|
${CMAKE_SOURCE_DIR}/taskchampion/lib
|
||||||
${TASK_INCLUDE_DIRS})
|
${TASK_INCLUDE_DIRS})
|
||||||
|
|
||||||
add_library (task STATIC CLI2.cpp CLI2.h
|
add_library (task STATIC CLI2.cpp CLI2.h
|
||||||
|
|
|
@ -5,7 +5,7 @@ include_directories (${CMAKE_SOURCE_DIR}
|
||||||
${CMAKE_SOURCE_DIR}/src/commands
|
${CMAKE_SOURCE_DIR}/src/commands
|
||||||
${CMAKE_SOURCE_DIR}/src/columns
|
${CMAKE_SOURCE_DIR}/src/columns
|
||||||
${CMAKE_SOURCE_DIR}/src/libshared/src
|
${CMAKE_SOURCE_DIR}/src/libshared/src
|
||||||
${CMAKE_SOURCE_DIR}/rust/lib
|
${CMAKE_SOURCE_DIR}/taskchampion/lib
|
||||||
${TASK_INCLUDE_DIRS})
|
${TASK_INCLUDE_DIRS})
|
||||||
|
|
||||||
set (columns_SRCS Column.cpp Column.h
|
set (columns_SRCS Column.cpp Column.h
|
||||||
|
|
|
@ -5,7 +5,7 @@ include_directories (${CMAKE_SOURCE_DIR}
|
||||||
${CMAKE_SOURCE_DIR}/src/commands
|
${CMAKE_SOURCE_DIR}/src/commands
|
||||||
${CMAKE_SOURCE_DIR}/src/columns
|
${CMAKE_SOURCE_DIR}/src/columns
|
||||||
${CMAKE_SOURCE_DIR}/src/libshared/src
|
${CMAKE_SOURCE_DIR}/src/libshared/src
|
||||||
${CMAKE_SOURCE_DIR}/rust/lib
|
${CMAKE_SOURCE_DIR}/taskchampion/lib
|
||||||
${TASK_INCLUDE_DIRS})
|
${TASK_INCLUDE_DIRS})
|
||||||
|
|
||||||
set (commands_SRCS Command.cpp Command.h
|
set (commands_SRCS Command.cpp Command.h
|
||||||
|
|
|
@ -3,7 +3,7 @@ include_directories (${CMAKE_SOURCE_DIR}
|
||||||
${CMAKE_SOURCE_DIR}/src
|
${CMAKE_SOURCE_DIR}/src
|
||||||
${CMAKE_SOURCE_DIR}/src/tc
|
${CMAKE_SOURCE_DIR}/src/tc
|
||||||
${CMAKE_SOURCE_DIR}/src/libshared/src
|
${CMAKE_SOURCE_DIR}/src/libshared/src
|
||||||
${CMAKE_SOURCE_DIR}/rust/lib
|
${CMAKE_SOURCE_DIR}/taskchampion/lib
|
||||||
${TASK_INCLUDE_DIRS})
|
${TASK_INCLUDE_DIRS})
|
||||||
|
|
||||||
set (tc_SRCS
|
set (tc_SRCS
|
||||||
|
|
|
@ -6,4 +6,4 @@ version = "0.1.0"
|
||||||
crate-type = ["staticlib"]
|
crate-type = ["staticlib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
taskchampion-lib = {path = "../../../rust/lib"}
|
taskchampion-lib = {path = "../../../taskchampion/lib"}
|
||||||
|
|
0
rust/.gitignore → taskchampion/.gitignore
vendored
Before Width: | Height: | Size: 554 KiB After Width: | Height: | Size: 554 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 51 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 166 KiB After Width: | Height: | Size: 166 KiB |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 523 KiB After Width: | Height: | Size: 523 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 152 KiB After Width: | Height: | Size: 152 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 807 KiB After Width: | Height: | Size: 807 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 67 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 229 KiB After Width: | Height: | Size: 229 KiB |
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 7.2 KiB |
Before Width: | Height: | Size: 8 KiB After Width: | Height: | Size: 8 KiB |