//! Low level access to Cortex-M processors //! //! This crate provides: //! //! - Access to core peripherals like NVIC, SCB and SysTick. //! - Access to core registers like CONTROL, MSP and PSR. //! - Interrupt manipulation mechanisms //! - Safe wrappers around Cortex-M specific instructions like `bkpt` //! //! # Optional features //! //! ## `inline-asm` //! //! When this feature is enabled the implementation of all the functions inside the `asm` and //! `register` modules use inline assembly (`llvm_asm!`) instead of external assembly (FFI into separate //! assembly files pre-compiled using `arm-none-eabi-gcc`). The advantages of enabling `inline-asm` //! are: //! //! - Reduced overhead. FFI eliminates the possibility of inlining so all operations include a //! function call overhead when `inline-asm` is not enabled. //! //! - Some of the `register` API only becomes available only when `inline-asm` is enabled. Check the //! API docs for details. //! //! The disadvantage is that `inline-asm` requires a nightly toolchain. //! //! ## `cm7-r0p1` //! //! This feature enables workarounds for errata found on Cortex-M7 chips with revision r0p1. Some //! functions in this crate only work correctly on those chips if this Cargo feature is enabled //! (the functions are documented accordingly). //! //! ## `linker-plugin-lto` //! //! This feature links against prebuilt assembly blobs that are compatible with [Linker-Plugin LTO]. //! This allows inlining assembly routines into the caller, even without the `inline-asm` feature, //! and works on stable Rust (but note the drawbacks below!). //! //! If you want to use this feature, you need to be aware of a few things: //! //! - You need to make sure that `-Clinker-plugin-lto` is passed to rustc. Please refer to the //! [Linker-Plugin LTO] documentation for details. //! //! - You have to use a Rust version whose LLVM version is compatible with the toolchain in //! `asm-toolchain`. //! //! - Due to a [Rust bug][rust-lang/rust#75940], this option does not work with optimization //! levels `s` and `z`. //! //! [Linker-Plugin LTO]: https://doc.rust-lang.org/stable/rustc/linker-plugin-lto.html //! [rust-lang/rust#75940]: https://github.com/rust-lang/rust/issues/75940 //! //! # Minimum Supported Rust Version (MSRV) //! //! This crate is guaranteed to compile on stable Rust 1.31 and up. It *might* //! compile with older versions but that may change in any new patch release. #![cfg_attr(feature = "inline-asm", feature(llvm_asm))] #![deny(missing_docs)] #![no_std] #![allow(clippy::identity_op)] #![allow(clippy::missing_safety_doc)] // Prevent clippy from complaining about empty match expression that are used for cfg gating. #![allow(clippy::match_single_binding)] // This makes clippy warn about public functions which are not #[inline]. // // Almost all functions in this crate result in trivial or even no assembly. // These functions should be #[inline]. // // If you do add a function that's not supposed to be #[inline], you can add // #[allow(clippy::missing_inline_in_public_items)] in front of it to add an // exception to clippy's rules. // // This should be done in case of: // - A function containing non-trivial logic (such as itm::write_all); or // - A generated #[derive(Debug)] function (in which case the attribute needs // to be applied to the struct). #![deny(clippy::missing_inline_in_public_items)] extern crate bare_metal; extern crate volatile_register; #[macro_use] mod macros; pub mod asm; #[cfg(armv8m)] pub mod cmse; pub mod delay; pub mod interrupt; #[cfg(all(not(armv6m), not(armv8m_base)))] pub mod itm; pub mod peripheral; pub mod prelude; pub mod register; pub use crate::peripheral::Peripherals; ck-fulfilled-after-rejection Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/resolve.test.js (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2023-03-01chore(builtins): add process builtin gen'd codeGravatar Derrick Farris 1-1/+24
2023-03-01feat(stdio): add some `tty.WriteStream` methodsGravatar Derrick Farris 1-0/+23
2023-03-01fix bun server segfault with abortsignal (#2261)Gravatar Ciro Spaciari 3-133/+79
2023-03-01fix(node:http): match Node `http.request()` GET/HEAD w/ body (#2262)Gravatar Derrick Farris 2-2/+31
2023-03-01Add a test for https request in node:httpGravatar Jarred Sumner 2-17/+28
2023-03-01fix(node:http/https): fix passing `URL` objs to `http.request`(#2253) (#2258)Gravatar Derrick Farris 2-43/+63
2023-03-01Revert "Update clap (#2238)"Gravatar Jarred Sumner 16-290/+1840
2023-03-01Revert "Add `-D`, `--dev` flags for bun install (#2240)"Gravatar Jarred Sumner 1-9/+9
2023-03-01Use GitHub action ID instead of SHA for test workflowGravatar Ashcon Partovi 1-1/+1
2023-03-01avoids segfault after aborted onReject in Bun.serve streams (#2256)Gravatar Ciro Spaciari 1-7/+8
2023-03-01Run tests in CI for bun-linux-aarch64Gravatar Ashcon Partovi 2-1/+30
2023-03-01Revert spawnSync changeGravatar Jarred Sumner 1-1/+2
2023-03-01Update bindings.zigGravatar Jarred Sumner 1-1/+3
2023-03-01fix deinit behavior when connection is aborted using ResponseStream and abort...Gravatar Ciro Spaciari 3-34/+174
2023-03-01fix Bun.file.arrayBuffer() segmentation fault on empty file #2248 (#2249)Gravatar Ciro Spaciari 3-7/+23
2023-03-01Fix async in sqliteGravatar Colin McDonnell 1-2/+2
2023-02-28Forces a specific libdir for c-ares (#2241)Gravatar Justin Whear 1-1/+5
2023-02-28Make Bun.gc(true) more aggressiveGravatar Jarred Sumner 1-0/+3
2023-02-28Expose JSC::Options via `BUN_JSC_` prefixGravatar Jarred Sumner 6-8/+47
2023-02-28fixupGravatar Jarred Sumner 1-1/+1
2023-02-28Fix typecheckGravatar Colin McDonnell 2-1/+4
2023-02-28Fix incorrect Bun version in docs (#2236)Gravatar Derrick Farris 1-1/+1
2023-02-28just some comments fix (#2237)Gravatar Ciro Spaciari 1-4/+2
2023-02-28Add `-D`, `--dev` flags for bun install (#2240)Gravatar Justin Whear 1-9/+9
2023-02-28Document punningGravatar Colin McDonnell 1-1/+18