1. Only showing results from lib.rs

    Clear filter to show all search results

  2. Sep 7, 2024smol. A small and fast async runtime. This crate simply re-exports other smaller async crates (see the source). To use tokio-based libraries with smol, apply the async-compat adapter to futures and I/O types. See the smol-macros crate if you want a no proc-macro, fast compiling, easy-to-use async main and/or multi-threaded Executor setup out of ...
  3. Oct 23, 2024smol_str. A SmolStr is a string type that has the following properties: size_of::<SmolStr>() == 24 (therefore == size_of::<String>() on 64 bit platforms) Clone is O(1) Strings are stack-allocated if they are: Up to 23 bytes long; Longer than 23 bytes, but substrings of WS (see src/lib.rs). Such strings consist solely of consecutive newlines ...
  4. Feb 18, 2024smol-macros. Macros for using smol-rs. One of the advantages of smol is that it lets you set up your own executor, optimized for your own use cases. However, quick scaffolding is important for many organizational use cases. Especially when sane defaults are appreciated, setting up your own executor is a waste of time. ...
  5. Dec 29, 2023Integrations between `smol` and `axum` | Rust/Cargo package. Lib.rs › Asynchronous › smol # http # future # concurrency smol-axum Integrations between smol and axum. Owned by John Nunley, smol-rs. Install; API reference; Repository (codeberg.org) 1 unstable release. 0.1.0 Dec 29, 2023 #2312 in Asynchronous. 30 downloads per month MIT/Apache.
  6. Feb 9, 2025The sha1_smol feature can be used as a fallback if no TLS is needed; The client feature requires enabling one random number generator: fastrand can be used as a PRNG; getrandom can be used as a cryptographically secure RNG; rand can be used as an alternative to fastrand and should be preferred if it is already in the dependency tree; Example
  7. 3 days agomacro-less and type-safe APIs for intuitive and declarative code; various runtimes are supported:tokio, async-std, smol, nio, glommio and worker (Cloudflare Workers), lambda (AWS Lambda); extremely fast, no-network testing, well-structured middlewares, Server-Sent Events, WebSocket, highly integrated OpenAPI document generation, ...
  8. Feb 5, 2025253 downloads per month . Custom license. 29KB 475 lines. SmolToken. SmolToken is a fast library for tokenizing text using the Byte Pair Encoding (BPE) algorithm. Inspired by OpenAI's tiktoken, SmolToken is designed to fill a critical gap by enabling BPE training from scratch while maintaining high performance for encoding and decoding tasks.. Unlike tiktoken, SmolToken supports training ...
  9. May 11, 2024Rust crate for interfacing with Linux HID Gadget devices (/dev/hidgX). This crate supports non-tokio async runtimes like the smol and async-std. Since all functionality is dependent on Linux function calls, this crate only compiles for Linux systems. Crates. hidg-core - core abstractions and low level interface (not for end users)
  10. Can’t find what you’re looking for?

    Help us improve DuckDuckGo searches with your feedback

Custom date rangeX