mirror of
https://github.com/allankoechke/cpp-to-rust-systems-samples.git
synced 2026-11-30 10:18:33 +00:00
fix samples and added guide pdf
This commit is contained in:
@@ -11,6 +11,7 @@ Everything here was compiled and run while writing the guide (Rust 1.75, g++ 13)
|
|||||||
| crate-samples | 5, 6, 8, 10, 11, 12 | needs crates.io: `cargo run --release --example NAME` for backpressure, parallel, shutdown, proxy; `cargo run` runs src/main.rs |
|
| crate-samples | 5, 6, 8, 10, 11, 12 | needs crates.io: `cargo run --release --example NAME` for backpressure, parallel, shutdown, proxy; `cargo run` runs src/main.rs |
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
|
- The table follows the workbook stages in the companion PDF. The repository is a set of executable samples rather than a complete implementation of every stage.
|
||||||
- std-samples uses only the standard library. The pager is Unix-only and the AVX2 code is x86-64 only.
|
- std-samples uses only the standard library. The pager is Unix-only and the AVX2 code is x86-64 only.
|
||||||
- crate-samples/Cargo.lock pins versions that build on Rust 1.75. On a newer toolchain, delete it and let Cargo resolve fresh versions.
|
- crate-samples/Cargo.lock pins versions that build on Rust 1.75. On a newer toolchain, delete it and let Cargo resolve fresh versions.
|
||||||
- The sandbox used for verification had one CPU core, so the parallel and false-sharing examples were checked for correctness only. Measure speedups on your own multi-core machine.
|
- The sandbox used for verification had one CPU core, so the parallel and false-sharing examples were checked for correctness only. Measure speedups on your own multi-core machine.
|
||||||
|
|||||||
BIN
Rust and Systems Programming The Complete Guide.pdf
Normal file
BIN
Rust and Systems Programming The Complete Guide.pdf
Normal file
Binary file not shown.
@@ -1,6 +1,9 @@
|
|||||||
use rayon::prelude::*;
|
use rayon::prelude::*;
|
||||||
use std::sync::atomic::{AtomicU64, Ordering::Relaxed};
|
use std::sync::atomic::{AtomicU64, Ordering::Relaxed};
|
||||||
use tokio::{io::{AsyncReadExt, AsyncWriteExt}, net::TcpListener};
|
use tokio::{
|
||||||
|
io::{AsyncReadExt, AsyncWriteExt},
|
||||||
|
net::TcpListener,
|
||||||
|
};
|
||||||
use tokio_util::task::TaskTracker;
|
use tokio_util::task::TaskTracker;
|
||||||
|
|
||||||
pub fn blur(src: &[f32], w: usize, h: usize) -> Vec<f32> {
|
pub fn blur(src: &[f32], w: usize, h: usize) -> Vec<f32> {
|
||||||
@@ -33,10 +36,16 @@ async fn main() -> std::io::Result<()> {
|
|||||||
let img = vec![1f32; 64 * 64];
|
let img = vec![1f32; 64 * 64];
|
||||||
let out = blur(&img, 64, 64);
|
let out = blur(&img, 64, 64);
|
||||||
println!("blur ok {}", out[100]);
|
println!("blur ok {}", out[100]);
|
||||||
let pool = rayon::ThreadPoolBuilder::new().num_threads(2).build().unwrap();
|
let pool = rayon::ThreadPoolBuilder::new()
|
||||||
|
.num_threads(2)
|
||||||
|
.build()
|
||||||
|
.unwrap();
|
||||||
let s: u64 = pool.install(|| (0..1000u64).into_par_iter().sum());
|
let s: u64 = pool.install(|| (0..1000u64).into_par_iter().sum());
|
||||||
let _p = Padded(AtomicU64::new(s));
|
let padded = Padded(AtomicU64::new(s));
|
||||||
|
println!("padded sum={}", padded.0.load(Relaxed));
|
||||||
let f = std::fs::File::open("/etc/hostname")?;
|
let f = std::fs::File::open("/etc/hostname")?;
|
||||||
|
// SAFETY: the file descriptor remains open, and the mapping is not
|
||||||
|
// concurrently truncated or modified while its bytes are being read.
|
||||||
let map = unsafe { memmap2::Mmap::map(&f)? };
|
let map = unsafe { memmap2::Mmap::map(&f)? };
|
||||||
println!("mmap bytes {}", map.len());
|
println!("mmap bytes {}", map.len());
|
||||||
|
|
||||||
|
|||||||
@@ -8,9 +8,11 @@ static ALLOCS: AtomicUsize = AtomicUsize::new(0);
|
|||||||
unsafe impl GlobalAlloc for Counting {
|
unsafe impl GlobalAlloc for Counting {
|
||||||
unsafe fn alloc(&self, l: Layout) -> *mut u8 {
|
unsafe fn alloc(&self, l: Layout) -> *mut u8 {
|
||||||
ALLOCS.fetch_add(1, Relaxed);
|
ALLOCS.fetch_add(1, Relaxed);
|
||||||
|
// SAFETY: `l` satisfies the GlobalAlloc contract and is forwarded unchanged.
|
||||||
System.alloc(l)
|
System.alloc(l)
|
||||||
}
|
}
|
||||||
unsafe fn dealloc(&self, p: *mut u8, l: Layout) {
|
unsafe fn dealloc(&self, p: *mut u8, l: Layout) {
|
||||||
|
// SAFETY: `p` and `l` come from this allocator's earlier successful alloc.
|
||||||
System.dealloc(p, l)
|
System.dealloc(p, l)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -23,6 +25,9 @@ fn main() {
|
|||||||
let before = ALLOCS.load(Relaxed);
|
let before = ALLOCS.load(Relaxed);
|
||||||
let total_ts: u64 = parse_all(&input).map(|r| r.ts).sum();
|
let total_ts: u64 = parse_all(&input).map(|r| r.ts).sum();
|
||||||
let after = ALLOCS.load(Relaxed);
|
let after = ALLOCS.load(Relaxed);
|
||||||
println!("sum={total_ts} allocations during parse: {}", after - before);
|
println!(
|
||||||
|
"sum={total_ts} allocations during parse: {}",
|
||||||
|
after - before
|
||||||
|
);
|
||||||
assert_eq!(after - before, 0);
|
assert_eq!(after - before, 0);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,24 +26,32 @@ pub struct SizeClass;
|
|||||||
unsafe impl GlobalAlloc for SizeClass {
|
unsafe impl GlobalAlloc for SizeClass {
|
||||||
unsafe fn alloc(&self, l: Layout) -> *mut u8 {
|
unsafe fn alloc(&self, l: Layout) -> *mut u8 {
|
||||||
if l.size() > 512 || l.align() > 16 {
|
if l.size() > 512 || l.align() > 16 {
|
||||||
|
// SAFETY: `l` is the layout from the allocator caller.
|
||||||
return System.alloc(l);
|
return System.alloc(l);
|
||||||
}
|
}
|
||||||
let c = class_of(l.size());
|
let c = class_of(l.size());
|
||||||
LOCAL.with(|cell| {
|
LOCAL.with(|cell| {
|
||||||
|
// SAFETY: LOCAL is an UnsafeCell whose contents are unique to this thread.
|
||||||
let loc = &mut *cell.get();
|
let loc = &mut *cell.get();
|
||||||
let head = loc.free[c];
|
let head = loc.free[c];
|
||||||
if !head.is_null() {
|
if !head.is_null() {
|
||||||
|
// SAFETY: a non-null free-list head was returned by this allocator
|
||||||
|
// and still points to storage writable for one pointer-sized value.
|
||||||
loc.free[c] = *(head as *mut *mut u8); // pop
|
loc.free[c] = *(head as *mut *mut u8); // pop
|
||||||
return head;
|
return head;
|
||||||
}
|
}
|
||||||
let sz = CLASSES[c];
|
let sz = CLASSES[c];
|
||||||
if loc.left < sz {
|
if loc.left < sz {
|
||||||
|
// SAFETY: CHUNK and 16 form a valid non-zero Layout.
|
||||||
let chunk = System.alloc(Layout::from_size_align_unchecked(CHUNK, 16));
|
let chunk = System.alloc(Layout::from_size_align_unchecked(CHUNK, 16));
|
||||||
if chunk.is_null() { return chunk; }
|
if chunk.is_null() {
|
||||||
|
return chunk;
|
||||||
|
}
|
||||||
loc.bump = chunk;
|
loc.bump = chunk;
|
||||||
loc.left = CHUNK; // the old chunk's tail is simply abandoned
|
loc.left = CHUNK; // the old chunk's tail is simply abandoned
|
||||||
}
|
}
|
||||||
let p = loc.bump;
|
let p = loc.bump;
|
||||||
|
// SAFETY: loc.left >= sz and bump points to sz bytes within the current chunk.
|
||||||
loc.bump = loc.bump.add(sz);
|
loc.bump = loc.bump.add(sz);
|
||||||
loc.left -= sz;
|
loc.left -= sz;
|
||||||
p
|
p
|
||||||
@@ -52,11 +60,15 @@ unsafe impl GlobalAlloc for SizeClass {
|
|||||||
|
|
||||||
unsafe fn dealloc(&self, p: *mut u8, l: Layout) {
|
unsafe fn dealloc(&self, p: *mut u8, l: Layout) {
|
||||||
if l.size() > 512 || l.align() > 16 {
|
if l.size() > 512 || l.align() > 16 {
|
||||||
|
// SAFETY: `p` and `l` identify memory allocated by System for this block.
|
||||||
return System.dealloc(p, l);
|
return System.dealloc(p, l);
|
||||||
}
|
}
|
||||||
let c = class_of(l.size());
|
let c = class_of(l.size());
|
||||||
LOCAL.with(|cell| {
|
LOCAL.with(|cell| {
|
||||||
|
// SAFETY: LOCAL is an UnsafeCell whose contents are unique to this thread.
|
||||||
let loc = &mut *cell.get();
|
let loc = &mut *cell.get();
|
||||||
|
// SAFETY: small blocks contain at least one pointer-sized storage slot
|
||||||
|
// and are no longer in use by their previous owner.
|
||||||
*(p as *mut *mut u8) = loc.free[c]; // push; a block freed on another thread joins that thread's list
|
*(p as *mut *mut u8) = loc.free[c]; // push; a block freed on another thread joins that thread's list
|
||||||
loc.free[c] = p;
|
loc.free[c] = p;
|
||||||
})
|
})
|
||||||
@@ -73,7 +85,9 @@ fn main() {
|
|||||||
let mut keep = Vec::new();
|
let mut keep = Vec::new();
|
||||||
for i in 0..200_000usize {
|
for i in 0..200_000usize {
|
||||||
let s = format!("thread {t} item {i}");
|
let s = format!("thread {t} item {i}");
|
||||||
if i % 10 == 0 { keep.push(s); }
|
if i % 10 == 0 {
|
||||||
|
keep.push(s);
|
||||||
|
}
|
||||||
let b = Box::new([i; 7]);
|
let b = Box::new([i; 7]);
|
||||||
assert_eq!(b[3], i);
|
assert_eq!(b[3], i);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,13 @@ pub struct Bounded<T> {
|
|||||||
|
|
||||||
impl<T> Bounded<T> {
|
impl<T> Bounded<T> {
|
||||||
pub fn new(cap: usize) -> Self {
|
pub fn new(cap: usize) -> Self {
|
||||||
Bounded { q: Mutex::new(VecDeque::with_capacity(cap)), cap, not_full: Condvar::new(), not_empty: Condvar::new() }
|
assert!(cap > 0, "a bounded channel requires a positive capacity");
|
||||||
|
Bounded {
|
||||||
|
q: Mutex::new(VecDeque::with_capacity(cap)),
|
||||||
|
cap,
|
||||||
|
not_full: Condvar::new(),
|
||||||
|
not_empty: Condvar::new(),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Blocks while the queue is full: this is backpressure.
|
/// Blocks while the queue is full: this is backpressure.
|
||||||
@@ -40,11 +46,32 @@ mod tests {
|
|||||||
use super::*;
|
use super::*;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
#[test]
|
#[test]
|
||||||
|
fn zero_capacity_is_rejected() {
|
||||||
|
let result = std::panic::catch_unwind(|| Bounded::<u8>::new(0));
|
||||||
|
assert!(result.is_err());
|
||||||
|
}
|
||||||
|
#[test]
|
||||||
fn many_producers_many_consumers() {
|
fn many_producers_many_consumers() {
|
||||||
let ch = Arc::new(Bounded::new(8));
|
let ch = Arc::new(Bounded::new(8));
|
||||||
let producers: Vec<_> = (0..4).map(|p| { let ch = ch.clone(); std::thread::spawn(move || for i in 0..1000 { ch.send(p * 1000 + i) }) }).collect();
|
let producers: Vec<_> = (0..4)
|
||||||
let consumers: Vec<_> = (0..4).map(|_| { let ch = ch.clone(); std::thread::spawn(move || (0..1000).map(|_| ch.recv() as u64).sum::<u64>()) }).collect();
|
.map(|p| {
|
||||||
for p in producers { p.join().unwrap(); }
|
let ch = ch.clone();
|
||||||
|
std::thread::spawn(move || {
|
||||||
|
for i in 0..1000 {
|
||||||
|
ch.send(p * 1000 + i)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
.collect();
|
||||||
|
let consumers: Vec<_> = (0..4)
|
||||||
|
.map(|_| {
|
||||||
|
let ch = ch.clone();
|
||||||
|
std::thread::spawn(move || (0..1000).map(|_| ch.recv() as u64).sum::<u64>())
|
||||||
|
})
|
||||||
|
.collect();
|
||||||
|
for p in producers {
|
||||||
|
p.join().unwrap();
|
||||||
|
}
|
||||||
let total: u64 = consumers.into_iter().map(|c| c.join().unwrap()).sum();
|
let total: u64 = consumers.into_iter().map(|c| c.join().unwrap()).sum();
|
||||||
assert_eq!(total, (0..4000u64).sum());
|
assert_eq!(total, (0..4000u64).sum());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
use std::cell::UnsafeCell;
|
use std::cell::UnsafeCell;
|
||||||
use std::mem::MaybeUninit;
|
use std::mem::MaybeUninit;
|
||||||
use std::sync::atomic::{AtomicUsize, Ordering::{Acquire, Relaxed, Release}};
|
use std::sync::atomic::{
|
||||||
|
AtomicUsize,
|
||||||
|
Ordering::{Acquire, Relaxed, Release},
|
||||||
|
};
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
struct Shared<T> {
|
struct Shared<T> {
|
||||||
@@ -18,8 +21,14 @@ pub struct Consumer<T>(Arc<Shared<T>>);
|
|||||||
|
|
||||||
pub fn channel<T>(cap: usize) -> (Producer<T>, Consumer<T>) {
|
pub fn channel<T>(cap: usize) -> (Producer<T>, Consumer<T>) {
|
||||||
assert!(cap > 0);
|
assert!(cap > 0);
|
||||||
let buf = (0..cap).map(|_| UnsafeCell::new(MaybeUninit::uninit())).collect();
|
let buf = (0..cap)
|
||||||
let s = Arc::new(Shared { buf, head: AtomicUsize::new(0), tail: AtomicUsize::new(0) });
|
.map(|_| UnsafeCell::new(MaybeUninit::uninit()))
|
||||||
|
.collect();
|
||||||
|
let s = Arc::new(Shared {
|
||||||
|
buf,
|
||||||
|
head: AtomicUsize::new(0),
|
||||||
|
tail: AtomicUsize::new(0),
|
||||||
|
});
|
||||||
(Producer(s.clone()), Consumer(s))
|
(Producer(s.clone()), Consumer(s))
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -32,7 +41,9 @@ impl<T> Producer<T> {
|
|||||||
return Err(v); // full
|
return Err(v); // full
|
||||||
}
|
}
|
||||||
// SAFETY: slot t is empty and owned by the producer until tail is published.
|
// SAFETY: slot t is empty and owned by the producer until tail is published.
|
||||||
unsafe { (*s.buf[t % s.buf.len()].get()).write(v); }
|
unsafe {
|
||||||
|
(*s.buf[t % s.buf.len()].get()).write(v);
|
||||||
|
}
|
||||||
s.tail.store(t.wrapping_add(1), Release); // publish the write
|
s.tail.store(t.wrapping_add(1), Release); // publish the write
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
@@ -56,9 +67,14 @@ impl<T> Consumer<T> {
|
|||||||
impl<T> Drop for Shared<T> {
|
impl<T> Drop for Shared<T> {
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
let (h, t) = (*self.head.get_mut(), *self.tail.get_mut());
|
let (h, t) = (*self.head.get_mut(), *self.tail.get_mut());
|
||||||
for i in h..t {
|
let occupied = t.wrapping_sub(h);
|
||||||
// SAFETY: slots in [head, tail) hold initialised values nobody else can reach now.
|
for i in 0..occupied {
|
||||||
unsafe { (*self.buf[i % self.buf.len()].get()).assume_init_drop(); }
|
let slot = h.wrapping_add(i) % self.buf.len();
|
||||||
|
// SAFETY: the producer/consumer are both gone, and each of these slots
|
||||||
|
// contains a value that has not yet been moved out by the consumer.
|
||||||
|
unsafe {
|
||||||
|
(*self.buf[slot].get()).assume_init_drop();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -69,13 +85,29 @@ mod tests {
|
|||||||
#[test]
|
#[test]
|
||||||
fn transfers_in_order() {
|
fn transfers_in_order() {
|
||||||
let (mut p, mut c) = channel::<u64>(64);
|
let (mut p, mut c) = channel::<u64>(64);
|
||||||
let prod = std::thread::spawn(move || { for i in 0..200_000u64 { while p.push(i).is_err() { std::hint::spin_loop(); } } });
|
let prod = std::thread::spawn(move || {
|
||||||
let cons = std::thread::spawn(move || { let mut next = 0u64; while next < 200_000 { if let Some(v) = c.pop() { assert_eq!(v, next); next += 1; } } });
|
for i in 0..200_000u64 {
|
||||||
prod.join().unwrap(); cons.join().unwrap();
|
while p.push(i).is_err() {
|
||||||
|
std::hint::spin_loop();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
let cons = std::thread::spawn(move || {
|
||||||
|
let mut next = 0u64;
|
||||||
|
while next < 200_000 {
|
||||||
|
if let Some(v) = c.pop() {
|
||||||
|
assert_eq!(v, next);
|
||||||
|
next += 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
prod.join().unwrap();
|
||||||
|
cons.join().unwrap();
|
||||||
}
|
}
|
||||||
#[test]
|
#[test]
|
||||||
fn drops_leftovers() {
|
fn drops_leftovers() {
|
||||||
let (mut p, _c) = channel::<String>(4);
|
let (mut p, _c) = channel::<String>(4);
|
||||||
p.push("a".into()).unwrap(); p.push("b".into()).unwrap();
|
p.push("a".into()).unwrap();
|
||||||
|
p.push("b".into()).unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"rustc_fingerprint":17572303121516054641,"outputs":{"5209341346701103639":{"success":true,"status":"","code":0,"stdout":"rustc 1.99.0 (b940084d7 2026-09-28)\nbinary: rustc\ncommit-hash: b940084d7eb6a299eb4bfeb8e34901bc051e7ac4\ncommit-date: 2026-09-28\nhost: x86_64-unknown-linux-gnu\nrelease: 1.99.0\nLLVM version: 23.1.1\n","stderr":""},"7971740275564407648":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/codeart/.rustup/toolchains/stable-x86_64-unknown-linux-gnu\noff\npacked\nunpacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_abi=\"\"\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_has_atomic_primitive_alignment=\"16\"\ntarget_has_atomic_primitive_alignment=\"32\"\ntarget_has_atomic_primitive_alignment=\"64\"\ntarget_has_atomic_primitive_alignment=\"8\"\ntarget_has_atomic_primitive_alignment=\"ptr\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n","stderr":""}},"successes":{}}
|
{"rustc_fingerprint":14455087699728164143,"outputs":{"5209341346701103639":{"success":true,"status":"","code":0,"stdout":"rustc 1.99.0 (b940084d7 2026-09-28)\nbinary: rustc\ncommit-hash: b940084d7eb6a299eb4bfeb8e34901bc051e7ac4\ncommit-date: 2026-09-28\nhost: x86_64-unknown-linux-gnu\nrelease: 1.99.0\nLLVM version: 23.1.1\n","stderr":""},"7971740275564407648":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/codeart/.rustup/toolchains/stable-x86_64-unknown-linux-gnu\noff\npacked\nunpacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_abi=\"\"\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_has_atomic_primitive_alignment=\"16\"\ntarget_has_atomic_primitive_alignment=\"32\"\ntarget_has_atomic_primitive_alignment=\"64\"\ntarget_has_atomic_primitive_alignment=\"8\"\ntarget_has_atomic_primitive_alignment=\"ptr\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n","stderr":""}},"successes":{}}
|
||||||
@@ -1,3 +1 @@
|
|||||||
Blocking waiting for file lock on package cache
|
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.00s
|
||||||
Checking samples v0.1.0 (/home/codeart/Downloads/rust-systems-samples/std-samples)
|
|
||||||
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.32s
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
{"reason":"compiler-artifact","package_id":"path+file:///home/codeart/Downloads/rust-systems-samples/std-samples#samples@0.1.0","manifest_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"samples","src_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":true},"features":[],"filenames":["/home/codeart/Downloads/rust-systems-samples/std-samples/target/debug/deps/libsamples-13012976c2bf930e.rmeta"],"executable":null,"fresh":false}
|
{"reason":"compiler-artifact","package_id":"path+file:///home/codeart/Downloads/rust-systems-samples/std-samples#samples@0.1.0","manifest_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"samples","src_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/home/codeart/Downloads/rust-systems-samples/std-samples/target/debug/deps/libsamples-3b3e94381362c128.rmeta"],"executable":null,"fresh":true}
|
||||||
{"reason":"compiler-artifact","package_id":"path+file:///home/codeart/Downloads/rust-systems-samples/std-samples#samples@0.1.0","manifest_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"samples","src_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/home/codeart/Downloads/rust-systems-samples/std-samples/target/debug/deps/libsamples-3b3e94381362c128.rmeta"],"executable":null,"fresh":false}
|
{"reason":"compiler-artifact","package_id":"path+file:///home/codeart/Downloads/rust-systems-samples/std-samples#samples@0.1.0","manifest_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/Cargo.toml","target":{"kind":["example"],"crate_types":["bin"],"name":"http_server","src_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/examples/http_server.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/home/codeart/Downloads/rust-systems-samples/std-samples/target/debug/examples/libhttp_server-d5aa7de73a0a9ee8.rmeta"],"executable":null,"fresh":true}
|
||||||
{"reason":"compiler-artifact","package_id":"path+file:///home/codeart/Downloads/rust-systems-samples/std-samples#samples@0.1.0","manifest_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/Cargo.toml","target":{"kind":["example"],"crate_types":["bin"],"name":"crash_test","src_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/examples/crash_test.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/home/codeart/Downloads/rust-systems-samples/std-samples/target/debug/examples/libcrash_test-241399b670d427c3.rmeta"],"executable":null,"fresh":false}
|
{"reason":"compiler-artifact","package_id":"path+file:///home/codeart/Downloads/rust-systems-samples/std-samples#samples@0.1.0","manifest_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/Cargo.toml","target":{"kind":["example"],"crate_types":["bin"],"name":"layout_bench","src_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/examples/layout_bench.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/home/codeart/Downloads/rust-systems-samples/std-samples/target/debug/examples/liblayout_bench-2d639f1d268a3a97.rmeta"],"executable":null,"fresh":true}
|
||||||
{"reason":"compiler-artifact","package_id":"path+file:///home/codeart/Downloads/rust-systems-samples/std-samples#samples@0.1.0","manifest_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/Cargo.toml","target":{"kind":["example"],"crate_types":["bin"],"name":"count_allocs","src_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/examples/count_allocs.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/home/codeart/Downloads/rust-systems-samples/std-samples/target/debug/examples/libcount_allocs-2173a989d485cdc1.rmeta"],"executable":null,"fresh":false}
|
{"reason":"compiler-artifact","package_id":"path+file:///home/codeart/Downloads/rust-systems-samples/std-samples#samples@0.1.0","manifest_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/Cargo.toml","target":{"kind":["example"],"crate_types":["bin"],"name":"crash_test","src_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/examples/crash_test.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/home/codeart/Downloads/rust-systems-samples/std-samples/target/debug/examples/libcrash_test-241399b670d427c3.rmeta"],"executable":null,"fresh":true}
|
||||||
{"reason":"compiler-artifact","package_id":"path+file:///home/codeart/Downloads/rust-systems-samples/std-samples#samples@0.1.0","manifest_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/Cargo.toml","target":{"kind":["example"],"crate_types":["bin"],"name":"layout_bench","src_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/examples/layout_bench.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/home/codeart/Downloads/rust-systems-samples/std-samples/target/debug/examples/liblayout_bench-2d639f1d268a3a97.rmeta"],"executable":null,"fresh":false}
|
{"reason":"compiler-artifact","package_id":"path+file:///home/codeart/Downloads/rust-systems-samples/std-samples#samples@0.1.0","manifest_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/Cargo.toml","target":{"kind":["example"],"crate_types":["bin"],"name":"size_class_alloc","src_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/examples/size_class_alloc.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/home/codeart/Downloads/rust-systems-samples/std-samples/target/debug/examples/libsize_class_alloc-777a78f58702c687.rmeta"],"executable":null,"fresh":true}
|
||||||
{"reason":"compiler-artifact","package_id":"path+file:///home/codeart/Downloads/rust-systems-samples/std-samples#samples@0.1.0","manifest_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/Cargo.toml","target":{"kind":["example"],"crate_types":["bin"],"name":"executor","src_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/examples/executor.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/home/codeart/Downloads/rust-systems-samples/std-samples/target/debug/examples/libexecutor-b45dab2b84cae908.rmeta"],"executable":null,"fresh":false}
|
{"reason":"compiler-artifact","package_id":"path+file:///home/codeart/Downloads/rust-systems-samples/std-samples#samples@0.1.0","manifest_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/Cargo.toml","target":{"kind":["example"],"crate_types":["bin"],"name":"count_allocs","src_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/examples/count_allocs.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/home/codeart/Downloads/rust-systems-samples/std-samples/target/debug/examples/libcount_allocs-2173a989d485cdc1.rmeta"],"executable":null,"fresh":true}
|
||||||
{"reason":"compiler-artifact","package_id":"path+file:///home/codeart/Downloads/rust-systems-samples/std-samples#samples@0.1.0","manifest_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/Cargo.toml","target":{"kind":["example"],"crate_types":["bin"],"name":"http_server","src_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/examples/http_server.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/home/codeart/Downloads/rust-systems-samples/std-samples/target/debug/examples/libhttp_server-d5aa7de73a0a9ee8.rmeta"],"executable":null,"fresh":false}
|
{"reason":"compiler-artifact","package_id":"path+file:///home/codeart/Downloads/rust-systems-samples/std-samples#samples@0.1.0","manifest_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/Cargo.toml","target":{"kind":["example"],"crate_types":["bin"],"name":"executor","src_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/examples/executor.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/home/codeart/Downloads/rust-systems-samples/std-samples/target/debug/examples/libexecutor-b45dab2b84cae908.rmeta"],"executable":null,"fresh":true}
|
||||||
{"reason":"compiler-artifact","package_id":"path+file:///home/codeart/Downloads/rust-systems-samples/std-samples#samples@0.1.0","manifest_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/Cargo.toml","target":{"kind":["example"],"crate_types":["bin"],"name":"size_class_alloc","src_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/examples/size_class_alloc.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/home/codeart/Downloads/rust-systems-samples/std-samples/target/debug/examples/libsize_class_alloc-777a78f58702c687.rmeta"],"executable":null,"fresh":false}
|
{"reason":"compiler-artifact","package_id":"path+file:///home/codeart/Downloads/rust-systems-samples/std-samples#samples@0.1.0","manifest_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"samples","src_path":"/home/codeart/Downloads/rust-systems-samples/std-samples/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":true},"features":[],"filenames":["/home/codeart/Downloads/rust-systems-samples/std-samples/target/debug/deps/libsamples-13012976c2bf930e.rmeta"],"executable":null,"fresh":true}
|
||||||
{"reason":"build-finished","success":true}
|
{"reason":"build-finished","success":true}
|
||||||
|
|||||||
Reference in New Issue
Block a user