!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

720 Members
Rust168 Servers

Load older messages


SenderMessageTime
1 Oct 2022
@x10an14:matrix.orgx10an14
-> $ cargo tree --invert openssl-sys
openssl-sys v0.9.76
├── native-tls v0.2.10
│   ├── hyper-tls v0.5.0
│   │   └── reqwest v0.11.12
│   │       ├── assign-item-to-project-field v0.1.0 (/home/x10an14/Documents/sr.ht/assign-item-to-project-field)
│   │       └── graphql_client v0.11.0
│   │           └── assign-item-to-project-field v0.1.0 (/home/x10an14/Documents/sr.ht/assign-item-to-project-field)
│   ├── reqwest v0.11.12 (*)
│   └── tokio-native-tls v0.3.0
│       ├── hyper-tls v0.5.0 (*)
│       └── reqwest v0.11.12 (*)
└── openssl v0.10.42
    └── native-tls v0.2.10 (*)
02:08:32
@x10an14:matrix.orgx10an14
-> $ cargo tree --invert openssl
openssl v0.10.42
└── native-tls v0.2.10
    ├── hyper-tls v0.5.0
    │   └── reqwest v0.11.12
    │       ├── assign-item-to-project-field v0.1.0 (/home/x10an14/Documents/sr.ht/assign-item-to-project-field)
    │       └── graphql_client v0.11.0
    │           └── assign-item-to-project-field v0.1.0 (/home/x10an14/Documents/sr.ht/assign-item-to-project-field)
    ├── reqwest v0.11.12 (*)
    └── tokio-native-tls v0.3.0
        ├── hyper-tls v0.5.0 (*)
        └── reqwest v0.11.12 (*)
02:08:48
@x10an14:matrix.orgx10an14

For completeness:

-> $ git diff Cargo.toml && echo -e "# Git diff of Cargo.toml above\\n---\\n# \`nix build\` and \`ldd\` invocation below" && nix build && ldd result/bin/* 

Cargo.toml

 10 ⋮ 10 │clap-verbosity-flag = "1"
 11 ⋮ 11 │clap_complete_command = "0.3"
 12 ⋮ 12 │color-eyre = "0.6"
 13 ⋮    │graphql_client = "0.11"
    ⋮ 13 │graphql_client = { version = "0.11", features = ["reqwest-rustls"] }
 14 ⋮ 14 │log = "0.4"
 15 ⋮    │reqwest = { version = "0.11", features = ["json"] }
    ⋮ 15 │reqwest = { version = "0.11", features = ["json", "rustls-tls"] }
 16 ⋮ 16 │serde = "1"
 17 ⋮ 17 │serde_json = "1"
 18 ⋮ 18 │tokio = { version = "1", features = ["macros", "rt-multi-thread", "fs"] }
# Git diff of Cargo.toml above
---
# `nix build` and `ldd` invocation below
warning: Git tree '/home/x10an14/Documents/sr.ht/assign-item-to-project-field' is dirty
        linux-vdso.so.1 (0x00007ffef59a3000)
        libssl.so.3 => not found
        libcrypto.so.3 => not found
02:11:12
@zhaofeng:zhaofeng.liZhaofeng LiSorry, on my phone, skipped over the Cargo.toml.02:12:21
@zhaofeng:zhaofeng.liZhaofeng Li You probably want default-features = false for reqwest 02:12:37
@x10an14:matrix.orgx10an14Nps, here's the repo if you wanna take a closer look: https://git.sr.ht/~x10an14/assign-item-to-project-field/tree/9e47a140d950c5d21896f3cdb74ce2ccfdc3e32402:12:51
@x10an14:matrix.orgx10an14Will attempt the default flag tip before I gotta sleep02:13:05
@x10an14:matrix.orgx10an14 The default_features = false fixed it, many many thanks for all your help these last days. Now itis commit, push, and bedtime. 02:20:58
@cgbrewster:matrix.orgcbrewster joined the room.19:28:35
3 Oct 2022
@amesgen:amesgen.deamesgen joined the room.23:21:40
4 Oct 2022
@joerg:thalheim.ioMic92 John Ericson: Have you looked into building rust targets in our default rustc before? 16:29:11
@joerg:thalheim.ioMic92I would be interested to build some sort ouf multi-output rustc derivation that also has webasm and musl.16:29:40
@qyliss:fairydust.spaceAlyssa Rossjoerg: I've briefly thought about it, and it would be complicated due to the need to have the libcs available for other targets.17:48:55
@qyliss:fairydust.spaceAlyssa RossI think it would be possible but not too easy.17:49:17
@joerg:thalheim.ioMic92qyliss: at least webasm doesn't need one.17:54:20
@qyliss:fairydust.spaceAlyssa RossYeah, that one would be easier.17:54:45
@qyliss:fairydust.spaceAlyssa RossIn that case, you should be able to override pkgsStatic.buildPackages.rustc to also include the webassembly target with the existing package, right?17:55:32
@qyliss:fairydust.spaceAlyssa RossAnd then you'd have a compiler that could do glibc, musl, and webassembly.17:56:14
@qyliss:fairydust.spaceAlyssa RossIf there are any targets that we can turn on "for free" like webassembly, adding those by default would make sense I think17:57:13
@qyliss:fairydust.spaceAlyssa RossThat should just be a case of changing the default value of the package option, I think.17:58:00
@x10an14:matrix.orgx10an14Could I somehow configure a flake to perform its compilation steps in a (multi-layered) docker image? I can't see support for this (AFAIU) in dockerTools. Ideally I'd like my flake defined default package to be built in a docker container, then having resulting binary copied out for any final/distroless container image (the latter of which dockerTools can produce just fine.)18:05:54
@Ericson2314:matrix.orgJohn Ericson Mic92 Alyssa Ross is Rustc itself always multi-target? 19:12:38
@Ericson2314:matrix.orgJohn EricsonI wish we could just build the standard library and rustc with crate2nix and separately19:12:53
@Ericson2314:matrix.orgJohn Ericsonbypass rustbuild altogether19:13:03
@qyliss:fairydust.spaceAlyssa RossEricson2314: you give it a list of targets to support19:18:54
@Ericson2314:matrix.orgJohn Ericson Alyssa Ross: is that for building stadandard libraries or compiler features, though? 19:23:08
@Ericson2314:matrix.orgJohn Ericsonmy guess is just standard libraries19:23:21
@qyliss:fairydust.spaceAlyssa Rosswhy would it be any different than clang?19:23:41
@qyliss:fairydust.spaceAlyssa Rossand like, it has to be multi-target or cross-compiling wouldn't work19:24:21
@qyliss:fairydust.spaceAlyssa RossBecause it's the same rustc that gets used for build and host.19:24:30

Show newer messages


Back to Room ListRoom Version: 6