Comments (5)
This happens because the Cargo.lock
file is not up-to-date, and doesn't contain the dependencies listed. If you run cargo check
once, the Cargo.lock
file will be updated and it builds fine.
from dream2nix.
Ok thanks, I missed this step. I updated the repo with a more involved example and with an updated Cargo.lock, the issue looks the same
> nix build .#ws_stream
error: builder for '/nix/store/3g67c10rfx56dw7cj6jmy1qv1nvi5wn8-ws_stream-0.1.0.drv' failed with exit code 101;
last 10 log lines:
> Executing cargoSetupPostUnpackHook
> Finished cargoSetupPostUnpackHook
> patching sources
> configuring
> building
> Executing cargoBuildHook
> ++ env CC_x86_64-unknown-linux-gnu=/nix/store/pja9g36cy32z3d51942jqk91a6l2d5nv-gcc-wrapper-10.3.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/pja9g36cy32z3d51942jqk91a6l2d5nv-gcc-wrapper-10.3.0/bin/c++ CC_x86_64-unknown-linux-gnu=/nix/store/pja9g36cy32z3d51942jqk91a6l2d5nv-gcc-wrapper-10.3.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/pja9g36cy32z3d51942jqk91a6l2d5nv-gcc-wrapper-10.3.0/bin/c++ cargo build -j 12 --target x86_64-unknown-linux-gnu --frozen --release --package ws_stream
> error: no matching package named `actix-http` found
> location searched: registry `crates-io`
> required by package `ws_stream v0.1.0 (/build/sbsymwzcgb8dbghk7ncx9ynq70hpkkx8-source/src/backend/ws_stream)`
For full logs, run 'nix log /nix/store/3g67c10rfx56dw7cj6jmy1qv1nvi5wn8-ws_stream-0.1.0.drv'.
from dream2nix.
#130 fixed the initial issue but a new one is reproducible at the same repo.
The error seems to come from actix_tls
not having the connect
feature activated.
error[E0432]: unresolved imports `actix_tls::connect::new_connector`, `actix_tls::connect::Connect`
--> /build/4y8ml4p65982cqjdjjzp3by17lsmgrqn-source/../nix-vendor/actix-http-3.0.0-beta.5/src/client/connector.rs:17:5
|
17 | new_connector, Connect as TcpConnect, ConnectError as TcpConnectError,
| ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ no `Connect` in `connect`
| |
| no `new_connector` in `connect`
|
help: a similar name exists in the module
|
17 | connector, Connect as TcpConnect, ConnectError as TcpConnectError,
| ~~~~~~~~~
help: a similar name exists in the module
|
17 | new_connector, Connector as TcpConnect, ConnectError as TcpConnectError,
| ~~~~~~~~~
error[E0432]: unresolved import `actix_tls::connect::Connect`
--> /build/4y8ml4p65982cqjdjjzp3by17lsmgrqn-source/../nix-vendor/actix-http-3.0.0-beta.5/src/client/mod.rs:14:5
|
14 | Connect as TcpConnect, ConnectError as TcpConnectError, Connection as TcpConnection,
| -------^^^^^^^^^^^^^^
| |
| no `Connect` in `connect`
| help: a similar name exists in the module: `Connector`
error[E0432]: unresolved import `actix_service::pipeline_factory`
--> /build/4y8ml4p65982cqjdjjzp3by17lsmgrqn-source/../nix-vendor/actix-http-3.0.0-beta.5/src/service.rs:13:21
|
13 | use actix_service::{pipeline_factory, IntoServiceFactory, Service, ServiceFactory};
| ^^^^^^^^^^^^^^^^ no `pipeline_factory` in the root
error[E0432]: unresolved import `actix_service::pipeline_factory`
--> /build/4y8ml4p65982cqjdjjzp3by17lsmgrqn-source/../nix-vendor/actix-http-3.0.0-beta.5/src/h1/service.rs:8:21
|
8 | use actix_service::{pipeline_factory, IntoServiceFactory, Service, ServiceFactory};
| ^^^^^^^^^^^^^^^^ no `pipeline_factory` in the root
error[E0432]: unresolved import `actix_service::pipeline_factory`
--> /build/4y8ml4p65982cqjdjjzp3by17lsmgrqn-source/../nix-vendor/actix-http-3.0.0-beta.5/src/h2/service.rs:10:29
|
10 | fn_factory, fn_service, pipeline_factory, IntoServiceFactory, Service,
| ^^^^^^^^^^^^^^^^ no `pipeline_factory` in the root
error[E0282]: type annotations needed
--> /build/4y8ml4p65982cqjdjjzp3by17lsmgrqn-source/../nix-vendor/actix-http-3.0.0-beta.5/src/client/connector.rs:267:28
|
267 | pub fn finish(self) -> ConnectorService<S, Io> {
| ^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for type parameter `Io`
error[E0282]: type annotations needed
--> /build/4y8ml4p65982cqjdjjzp3by17lsmgrqn-source/../nix-vendor/actix-http-3.0.0-beta.5/src/client/connector.rs:533:13
|
533 | impl<S, Io> Service<Connect> for TcpConnectorInnerService<S>
| ^^^^^^^^^^^^^^^^ cannot infer type for type parameter `Io`
error[E0282]: type annotations needed
--> /build/4y8ml4p65982cqjdjjzp3by17lsmgrqn-source/../nix-vendor/actix-http-3.0.0-beta.5/src/client/connector.rs:548:8
|
548 | fn call(&self, req: Connect) -> Self::Future {
| ^^^^ cannot infer type for type parameter `Io`
error[E0282]: type annotations needed
--> /build/4y8ml4p65982cqjdjjzp3by17lsmgrqn-source/../nix-vendor/actix-http-3.0.0-beta.5/src/client/connector.rs:546:5
|
546 | actix_service::forward_ready!(service);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for type parameter `Io`
|
= note: this error originates in the macro `actix_service::forward_ready` (in Nightly builds, run with -Z macro-backtrace for more info)
Some errors have detailed explanations: E0282, E0432.
For more information about an error, try `rustc --explain E0282`.
error: could not compile `actix-http` due to 9 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed
from dream2nix.
#130 fixed the initial issue but a new one is reproducible at the same repo.
The error seems to come from
actix_tls
not having theconnect
feature activated.error[E0432]: unresolved imports `actix_tls::connect::new_connector`, `actix_tls::connect::Connect` --> /build/4y8ml4p65982cqjdjjzp3by17lsmgrqn-source/../nix-vendor/actix-http-3.0.0-beta.5/src/client/connector.rs:17:5 | 17 | new_connector, Connect as TcpConnect, ConnectError as TcpConnectError, | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ no `Connect` in `connect` | | | no `new_connector` in `connect` | help: a similar name exists in the module | 17 | connector, Connect as TcpConnect, ConnectError as TcpConnectError, | ~~~~~~~~~ help: a similar name exists in the module | 17 | new_connector, Connector as TcpConnect, ConnectError as TcpConnectError, | ~~~~~~~~~ error[E0432]: unresolved import `actix_tls::connect::Connect` --> /build/4y8ml4p65982cqjdjjzp3by17lsmgrqn-source/../nix-vendor/actix-http-3.0.0-beta.5/src/client/mod.rs:14:5 | 14 | Connect as TcpConnect, ConnectError as TcpConnectError, Connection as TcpConnection, | -------^^^^^^^^^^^^^^ | | | no `Connect` in `connect` | help: a similar name exists in the module: `Connector` error[E0432]: unresolved import `actix_service::pipeline_factory` --> /build/4y8ml4p65982cqjdjjzp3by17lsmgrqn-source/../nix-vendor/actix-http-3.0.0-beta.5/src/service.rs:13:21 | 13 | use actix_service::{pipeline_factory, IntoServiceFactory, Service, ServiceFactory}; | ^^^^^^^^^^^^^^^^ no `pipeline_factory` in the root error[E0432]: unresolved import `actix_service::pipeline_factory` --> /build/4y8ml4p65982cqjdjjzp3by17lsmgrqn-source/../nix-vendor/actix-http-3.0.0-beta.5/src/h1/service.rs:8:21 | 8 | use actix_service::{pipeline_factory, IntoServiceFactory, Service, ServiceFactory}; | ^^^^^^^^^^^^^^^^ no `pipeline_factory` in the root error[E0432]: unresolved import `actix_service::pipeline_factory` --> /build/4y8ml4p65982cqjdjjzp3by17lsmgrqn-source/../nix-vendor/actix-http-3.0.0-beta.5/src/h2/service.rs:10:29 | 10 | fn_factory, fn_service, pipeline_factory, IntoServiceFactory, Service, | ^^^^^^^^^^^^^^^^ no `pipeline_factory` in the root error[E0282]: type annotations needed --> /build/4y8ml4p65982cqjdjjzp3by17lsmgrqn-source/../nix-vendor/actix-http-3.0.0-beta.5/src/client/connector.rs:267:28 | 267 | pub fn finish(self) -> ConnectorService<S, Io> { | ^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for type parameter `Io` error[E0282]: type annotations needed --> /build/4y8ml4p65982cqjdjjzp3by17lsmgrqn-source/../nix-vendor/actix-http-3.0.0-beta.5/src/client/connector.rs:533:13 | 533 | impl<S, Io> Service<Connect> for TcpConnectorInnerService<S> | ^^^^^^^^^^^^^^^^ cannot infer type for type parameter `Io` error[E0282]: type annotations needed --> /build/4y8ml4p65982cqjdjjzp3by17lsmgrqn-source/../nix-vendor/actix-http-3.0.0-beta.5/src/client/connector.rs:548:8 | 548 | fn call(&self, req: Connect) -> Self::Future { | ^^^^ cannot infer type for type parameter `Io` error[E0282]: type annotations needed --> /build/4y8ml4p65982cqjdjjzp3by17lsmgrqn-source/../nix-vendor/actix-http-3.0.0-beta.5/src/client/connector.rs:546:5 | 546 | actix_service::forward_ready!(service); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for type parameter `Io` | = note: this error originates in the macro `actix_service::forward_ready` (in Nightly builds, run with -Z macro-backtrace for more info) Some errors have detailed explanations: E0282, E0432. For more information about an error, try `rustc --explain E0282`. error: could not compile `actix-http` due to 9 previous errors warning: build failed, waiting for other jobs to finish... error: build failed
Can you open a separate issue for this?
from dream2nix.
from dream2nix.
Related Issues (20)
- Separate the pyEnv and devShell parts of pip module into their own module(s)
- Start shell with dependencies without creating a new flake file HOT 2
- PDM Locking fails if only config.deps.python is set HOT 1
- nodejs: native module compilation failure, need help configuring nativeBuildInputs HOT 3
- Pip installed CLI tool not in PATH HOT 3
- WIP - pdm add spyder # python3.12-pyqt5-5.15.10 - pdm.sourceSelector.<function body> is not of type 'string'. HOT 2
- WIP - pdm - Python version from d2n nixpkgs HOT 1
- [help] usage of multi-derivation-package HOT 1
- Question: Python package with libusb dependency HOT 2
- error: infinite recursion encountered # nix run github:nix-community/dream2nix#__pythonEnv extract-msg HOT 2
- realpath: command not found HOT 1
- How to make the lock building process for python proxy aware?
- Error: attribute 'overrideAttrs' missing when running nodejs-granular-v3 devshell
- bad (null) hash for package from extra pypi index
- Unable to provide nativeBuildInputs to nodejs transitive dependencies
- error: No valid filename found in the list of filenames: - PyQt5_Qt5-5.15.13-py3-none-macosx_10_13_x86_64.whl
- Can't import fsspec gcsfs
- python local developpement example using only requirements.txt and no pyproject.toml
- How to build pip package from source that requires rust toolchain HOT 2
- Support maturin pip build backend HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dream2nix.