Rust Examples Ex

format

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
println!("hello");


println!("{:?}", 1.0/2.0);

let a: i32 = 3;
let b:u32 = 3;
let i: i32 = 2;

println!("{:?}, {}", a.pow(b), a.pow(i as u32));
hello

binary, hex

1
println!("ob{:b}, ox{:X}", 16, 15);
ob10000, oxF

Wayland

应用

  • 原生支持

    • emacs-pgtk (emacs-wayland on arch linux)
    • firefox
  • vscode

    • code --ozone-platform=wayland

sfwbar

出现 tasklist 无法识别的 icon

修复方法:

  1. cp your_real_icon_file ~/.local/share/icons/

支持 win10 任务栏 task manager 样式

cp /usr/local/share/sfwbar/w10.config ~/.config/sfwbar/sfwbar.config

编译安装

微信无法使用 fcitx5 输入修复方法

在 /etc/environment 中添加: