-
-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rust binaries support for Nitrokey 3 cards / Heads support status for Nitrokey 3 dongles #1354
Comments
@szszszsz this would be a first. Check for no_cc under Makefile to get hands on on what is passed to the build system today. musl-cross-make might need a version bump |
Yes, linking against musl should be as easy as providing it as target This is what I have so far, while building rusb example for listing USB devices (not tested under Heads environment yet): click to show
Edit: Thank you for the pointers! |
@szszszsz I guess this is for nitrokey 3 cards? |
If we talk about Nitrokey 3 support instead, the question would be what do those Rust binaries do? I have a Nitrokey 3 sitting here quite idle, since it can do almost ... nothing, maybe I could test/work on something. Even webauthn magically stopped working with the token. Rant
I can't even build Nitrokey 3 tooling from source because we seem to rely on some interesting binary components only. This puts me off from ever working on anything with that device. |
@szszszsz Example of questions from community directed at me:
AFAIK HOTP is not functional on Nitrokey 3. Please send pointers to this issue so the community can find their own answers without contacting me through private channels. Thank you! Answer I can give for the moment:
|
Hi @tlaurion ! Sorry for not replying, this ticket got out of my sight.
|
@szszszsz a PR pointing modules/hotp-verification to tested commit would be needed under Heads! We talked about upstreaming and reducing Heads forks complexity in a recent call with Nitrokey! |
Connected: #1417 |
I think with that we can close this ticket, as I do not see anything to act on. Please reopen otherwise. |
Is your feature request related to a problem? Please describe.
I would like to use Rust-based tooling inside Heads. Was this done before? If so, what are best practices for that?
I expect any binary which would be small and buildable statically using
musl
would be good enough.Just to confirm: is the
musl
use a hard requirement for the non-C tools? I would like to keep the static linking againstglibc
possibility open if possible for the tool I have in mind.Describe the solution you'd like
Edit: I can see from this table, that
musl
should actually have lower size overhead and be a safer counterpart againstglibc
:The text was updated successfully, but these errors were encountered: