Skip to content

add RUSTFLAGS to devShell#7

Merged
PgBiel merged 1 commit intotypst:mainfrom
tingerrr:tinger/rzrsqtzvsqlm
Jan 31, 2026
Merged

add RUSTFLAGS to devShell#7
PgBiel merged 1 commit intotypst:mainfrom
tingerrr:tinger/rzrsqtzvsqlm

Conversation

@tingerrr
Copy link
Contributor

This ensures that when developing using the devShell, cargo run uses nix-ld, which respects LD_LIBRARY_PATH and can therefore find OpenSSL at runtime.

Resolves #5.

This ensures that when developing using the devShell, `cargo run` uses
nix-ld, which respects `LD_LIBRARY_PATH` and can therefore find OpenSSL
at runtime.

Resolves typst#5.
@tingerrr
Copy link
Contributor Author

I noticed that this doesn't quite solve the issue for me on Tytanic, because I can cargo run it, but I can't cargo test it with assert_cmd.

This is not an issue for Typst itself, but I figure I'd mention it here. If Typst begins testing its CLI output, flake users will run into this too.

@tingerrr
Copy link
Contributor Author

Turns out that was just me overriding them in my justfile for local CI, this will work just fine even if Typst adds CLI testing.

@PgBiel PgBiel merged commit 0862b4b into typst:main Jan 31, 2026
@PgBiel
Copy link
Collaborator

PgBiel commented Jan 31, 2026

Thank you

@tingerrr tingerrr deleted the tinger/rzrsqtzvsqlm branch February 4, 2026 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FR: Add LD_LIBRARY_PATH to devShell

2 participants