Skip to content

Commit a2ebd0d

Browse files
create djls-ipc crate for communicating with Django process (#17)
1 parent f4e4736 commit a2ebd0d

File tree

8 files changed

+868
-9
lines changed

8 files changed

+868
-9
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,32 @@ concurrency:
1212

1313
env:
1414
CARGO_TERM_COLOR: always
15+
FORCE_COLOR: "1"
16+
PYTHONUNBUFFERED: "1"
17+
UV_VERSION: "0.4.x"
1518

1619
jobs:
1720
test:
1821
runs-on: ${{ matrix.os }}
1922
strategy:
23+
fail-fast: false
2024
matrix:
2125
os:
2226
- macos-latest
2327
- ubuntu-latest
24-
- windows-latest
25-
toolchain:
26-
- stable
27-
- beta
28-
- nightly
2928
steps:
3029
- uses: actions/checkout@v4
3130

32-
- name: Install Rust toolchain
33-
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
31+
- name: Install uv
32+
uses: astral-sh/setup-uv@v4
33+
with:
34+
enable-cache: true
35+
version: ${{ env.UV_VERSION }}
3436

35-
- name: Build
36-
run: cargo build --verbose
37+
- name: Install dependencies and build
38+
run: |
39+
uv sync --frozen
40+
cargo build --verbose
3741
3842
- name: Run tests
3943
run: cargo test --verbose

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ resolver = "2"
66
djls = { path = "crates/djls" }
77
djls-ast = { path = "crates/djls-ast" }
88
djls-django = { path = "crates/djls-django" }
9+
djls-ipc = { path = "crates/djls-ipc" }
910
djls-python = { path = "crates/djls-python" }
1011
djls-worker = { path = "crates/djls-worker" }
1112

crates/djls-ipc/Cargo.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[package]
2+
name = "djls-ipc"
3+
version = "0.0.0"
4+
edition = "2021"
5+
6+
[dependencies]
7+
anyhow = { workspace = true }
8+
async-trait = { workspace = true }
9+
serde = { workspace = true }
10+
serde_json = { workspace = true }
11+
tokio = { workspace = true }
12+
13+
tempfile = "3.14.0"

0 commit comments

Comments
 (0)