Skip to content
This repository was archived by the owner on Aug 11, 2025. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
[source.crates-io]
replace-with = 'tuna'
[net]
git-fetch-with-cli = true

[source.tuna]
registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"
# [source.crates-io]
# replace-with = 'tuna'
#
# [source.tuna]
# registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"

# [target.x86_64-unknown-linux-musl]
# linker = "musl-gcc"
[target.x86_64-unknown-linux-musl]
linker = "musl-gcc"
37 changes: 37 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Rust

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

env:
CARGO_TERM_COLOR: always

jobs:
# coverage:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions-rs/toolchain@v1
# with:
# toolchain: stable
# components: llvm-tools-preview
# - name: Install cargo-llvm-cov
# uses: taiki-e/install-action@cargo-llvm-cov
# - name: Generate code coverage
# run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v1
# with:
# files: lcov.info
# fail_ci_if_error: true
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: rustup update stable; make ci
- name: Run tests
run: rustup update stable; make test
40 changes: 19 additions & 21 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
# Generated by Cargo
# will have compiled files and executables
target/
debug/
release/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock
target

# These are backup files generated by rustfmt
**/*.rs.bk
.DS_Store
**/*~
**/.vscode
.*.sw*
.stack-work
stack.yaml.lock
**/history.txt
**/__pycache__
.idea

node_modules
package-lock.json


#Added by cargo

/target


#Added by cargo
#
#already existing elements were commented out

#/target
#Cargo.lock

Cargo.lock
*.tar.gz
nohup.out
tt.*.*z

log_tester.tar.gz*
23 changes: 0 additions & 23 deletions .gitlab-ci.yml

This file was deleted.

20 changes: 13 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
[workspace]
members = [
"src/core_def",
"src/core",
"src/server_def",
"src/server",
"src/proxy",
"src/tt",
"src/client",
"src/rexec",
"src/utils",
"src/server",
"src/framework",
"src/engine",
]

[workspace.dependencies]
ruc = "4.1.0"
once_cell = "1.17.1"
parking_lot = "0.12.1"
serde = { version = "1.0.160", features = ["derive"] }

tt-engine = { path = "src/engine", version = "0.1.0" }
tt-framework = { path = "src/framework", version = "0.1.0" }

[profile.dev]
overflow-checks = true
panic = "unwind"
Expand Down
Loading