Original file line numberDiff line numberDiff line change @@ -58,7 +58,7 @@ impl<'s> fmt::Display for ParseError<'s> { )?; let Some((begin, size)) = self.token else { return Ok(()); return Ok(()); }; let mut i = 0; @@ -154,18 +154,18 @@ impl<'s> ArgsParser...
当使用 Cargo 创建一个 lib 类型的包时,它会为我们自动生成一个测试模块。先来创建一个 lib 类型的 adder 包。创建成功后,在 src/lib.rs 文件中可以发现如下代码:由于网络问题,执行失败的话,多执行几次总会成功。 安装选项选Proceed with installation (default)即可。快速配置 Rust 开发环境并编写一个小应...
let puzzle = hex::decode(fmt).expect("failed to parse puzzle"); let puzzle = node_from_bytes(a, &puzzle[..]).expect("failed to parse puzzle"); list = a.new_pair(puzzle, list).expect("new_pair"); } // quote a.new_pair(a.one(), list).expect("new_pair") } fn matrix<con...
Original file line numberDiff line numberDiff line change @@ -1,6 +1,12 @@ use std::{fmt::Debug, marker::PhantomData}; use std::{ fmt::Debug, marker::PhantomData, }; use cs2_schema_declaration::{MemoryHandle, SchemaValue}; use cs2_schema_declaration::{ MemoryHandle, SchemaValue, }...
) * First pass * Add extra tests * small change * Small refactor * fmt * Small refactor * Small refactor * fmt * Fixes * fixes * Add string support * add gas * refactor * fix vectors * fix vectors * fix vectors * gas feature number * fmt * literal fmt string * rewrite * ...
- run: rustup component add rustfmt - run: rustup component add rust-src - run: sudo apt-get install -y llvm-11 clang-11 lld-11 - run: echo $(llvm-config-11 --bindir) >> $GITHUB_PATH # Build - run: cp .github/workflows/kernel-${{ matrix.mode }}.config .config # Setup:...
- run: rustup component add rustfmt - run: rustup component add rust-src - run: git clone --depth 1 --branch 0.1.38 https://github.com/rust-lang/compiler-builtins.git $(rustc --print sysroot)/lib/rustlib/src/compiler-builtins - run: git clone --depth 1 --branch 1_30_1 htt...
- run: rustup component add rustfmt - run: rustup component add rust-src - run: git clone --depth 1 --branch 0.1.36 https://github.com/rust-lang/compiler-builtins.git $(rustc --print sysroot)/lib/rustlib/src/compiler-builtins # Build - run: cp .github/workflows/kernel-${{ ma...
- run: rustup component add rustfmt - run: rustup component add rust-src - run: git clone --depth 1 --branch 0.1.38 https://github.com/rust-lang/compiler-builtins.git $(rustc --print sysroot)/lib/rustlib/src/compiler-builtins - run: git clone --depth 1 --branch 1_30_1 htt...
- run: rustup component add rustfmt - run: rustup component add rust-src - run: git clone --depth 1 --branch 0.1.38 https://github.com/rust-lang/compiler-builtins.git $(rustc --print sysroot)/lib/rustlib/src/compiler-builtins - run: git clone --depth 1 --branch 1_30_1 htt...