Crate rustpython_common

source ·
Expand description

A crate to hold types and functions common to all rustpython components.

Modules§

  • An unresizable vector backed by a Box<[T]>
  • A module implementing an io type backed by the C runtime’s file descriptors, i.e. what’s returned from libc::open, even on windows.
  • This module is modified from tokio::util::linked_list: https://github.com/tokio-rs/tokio/blob/master/tokio/src/util/linked_list.rs Tokio is licensed under the MIT license:
  • A module containing lock_api-based lock types that are or are not Send + Sync depending on whether the threading feature of this module is enabled.

Macros§

  • Creates an AsciiStr from a string literal, throwing a compile error if the literal isn’t actually ascii.
  • Suppress the MSVC invalid parameter handler, which by default crashes the process. Does nothing on non-MSVC targets.