Skip to content

Commit d1b3b32

Browse files
committed
Oops...needed to fix a dependency...
1 parent 8d433d5 commit d1b3b32

File tree

8 files changed

+45
-18
lines changed

8 files changed

+45
-18
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ env:
44
DEBUG: napi:*
55
APP_NAME: python-node
66
MACOSX_DEPLOYMENT_TARGET: '10.13'
7+
CARGO_NET_GIT_FETCH_WITH_CLI: true
78

89
permissions:
910
contents: write
@@ -23,6 +24,10 @@ on:
2324
- docs/**
2425
pull_request:
2526

27+
concurrency:
28+
group: ${{ github.workflow }}-${{ github.ref }}-ci
29+
cancel-in-progress: true
30+
2631
jobs:
2732
build:
2833
strategy:

.github/workflows/lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Lint
22

3+
env:
4+
CARGO_NET_GIT_FETCH_WITH_CLI: true
5+
36
'on':
47
push:
58
branches:

Cargo.lock

Lines changed: 25 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ crate-type = ["cdylib"]
2020
[dependencies]
2121
async-trait = "0.1.88"
2222
bytes = "1.10.1"
23-
http-handler = { git = "ssh://git@github.com/platformatic/http-handler" }
23+
http-handler = { git = "ssh://git@github.com/platformatic/http-handler.git" }
2424
# http-handler = { path = "../http-handler" }
25-
# http-rewriter = { git = "ssh://git@github.com/platformatic/http-rewriter" }
26-
http-rewriter = { path = "../http-rewriter" }
25+
http-rewriter = { git = "ssh://git@github.com/platformatic/http-rewriter.git" }
26+
# http-rewriter = { path = "../http-rewriter" }
2727
# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
2828
napi = { version = "3.0.0-beta.8", default-features = false, features = ["napi4"], optional = true }
2929
napi-derive = { version = "3.0.0-beta.8", optional = true }

rust-toolchain.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[toolchain]
2+
channel = "stable"
3+
components = [ "rustfmt", "rustc-dev", "clippy" ]
4+
targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu" ]
5+
profile = "minimal"

src/asgi/http.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,8 @@ pub enum HttpSendException {
383383
#[cfg(test)]
384384
mod tests {
385385
use super::*;
386-
use http_handler::{Method, Version, request::Builder};
387-
use http_handler::{RequestExt, extensions::DocumentRoot};
386+
use http_handler::{extensions::DocumentRoot, RequestExt};
387+
use http_handler::{request::Builder, Method, Version};
388388
use std::{
389389
net::{IpAddr, Ipv4Addr, SocketAddr},
390390
path::PathBuf,

src/asgi/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::{
66
};
77

88
use bytes::BytesMut;
9-
use http_handler::{Handler, Request, RequestExt, Response, extensions::DocumentRoot};
9+
use http_handler::{extensions::DocumentRoot, Handler, Request, RequestExt, Response};
1010
use pyo3::exceptions::PyRuntimeError;
1111
use pyo3::prelude::*;
1212
use pyo3::types::PyModule;

src/asgi/receiver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use pyo3::exceptions::PyValueError;
44
use pyo3::prelude::*;
55
use pyo3::types::PyDict;
66

7-
use tokio::sync::{Mutex, mpsc};
7+
use tokio::sync::{mpsc, Mutex};
88

99
use crate::asgi::{
1010
http::HttpReceiveMessage, lifespan::LifespanReceiveMessage, websocket::WebSocketReceiveMessage,

0 commit comments

Comments
 (0)