Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
calendar_calculator
📅 Calculate the number of days separating two dates and add or remove days to a certain date
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I develop on x86, and when targeting other platforms, I use cross-rs to compile, the applications are always deployed on Docker containers, using either ubuntu:22.04, or alpine:3.17 as the Base (to x86, armv6, or arrm64 targets, depending on the project).
There is a feature available in nightly to do that. There's a stackoverflow answer showing how to use it to do what you're trying to do.
see https://github.com/rust-lang/rfcs/pull/1450
https://crates.io/crates/whisper-rs is a wrapper for https://github.com/ggerganov/whisper.cpp which is a simple CPU implementation of STT using the OpenAI whisper model. whisper.cpp is around 10k lines of C and C++ with no dependencies. 7k of that is a C tensor implementation (ggml). So the actual whisper specific part is 3k or 4k lines of C++ code.
The problem is, I don't understand how I can get rid of the .unwrap() in my parse_method and parse_url functions and use the ? operator instead. I have already read https://github.com/rust-bakery/nom/blob/main/doc/error_management.md but absolutely don't understand how to apply it in this case.
Is there a way to find out about binaries available on crates.io? I'm not interested in libraries but only in crates offering binaries. What i'd love is a way to get a list of all crates that do include binaries and the names of those binaries. It haven't found anything like that on the https://github.com/rust-lang/crates.io-index or on the db dump from https://crates.io/data-access.
I created my first crate (a calendar calculator), does anyone can anyone help me to understand if idiomatic style is respected and eventually give me some advice? github
After your comment, I played a little with GATs, and I think we can get pretty close to having HKTs in Rust.
Hm, I think my code is not too different. It's at https://github.com/kud1ing/grd One first has to build the Rust code. The error is triggered by the Python client in https://github.com/kud1ing/grd/blob/main/python/client.py which calls https://github.com/kud1ing/grd/blob/main/rust/client_c_api/src/lib.rs
The first one is a shell script that calls cross build --release --target aarch64-unknown-linux-gnu. This works fine, and I can copy the executable to the rpi and run it (albeit without docker)