v0.4.0
Fix
- 改进文件 didChange 的判断,减少
unwrap()
报错 - 避免代码中硬编码用户目录
- 移除部分不必要的类型转换
- 修复第一次补全无法触发方案选单的问题
Feat
- 放弃
Rime*
这种老 API,转用新版本 API - 可以通过 Github Actions 构建的 Docker 镜像来使用 rime-ls 了
- 增加新的配置项
show_order_in_label
用于配置补全项不显示数字 (#28)
Doc
Chore
- 加入
Cargo.lock
便于可重复构建 (Thanks to definfo #32) - 改进
Dockerfile
,基于 Alpine 减小镜像大小 (23 MB)
What's Changed
- doc: add installation guide for NixOS by @definfo in #33
- fix typo by @evpeople in #34
- refactor: rime api call by @wlh320 in #36
New Contributors
Build
On my PC, script:
LIBRIME_VER=1.11.2
LIBRIME_HASH=5b09f35
PROJECT_PATH=~/build/rime-ls
RIME_LS_VER=0.4.0
# download and extract librime
mkdir librime
wget https://github.com/rime/librime/releases/download/${LIBRIME_VER}/rime-${LIBRIME_HASH}-macOS-universal.tar.bz2 \
-O librime/mac.tar.bz2
mkdir librime/mac
tar xvjf librime/mac.tar.bz2 -C librime/mac
wget https://github.com/rime/librime/releases/download/${LIBRIME_VER}/rime-${LIBRIME_HASH}-Windows-msvc-x64.7z \
-O librime/msvc.7z
7z x librime/msvc.7z -olibrime/msvc
# build
## linux
LIBRIME_INCLUDE_DIR=/usr/include LIBRIME_LIB_DIR=/usr/lib cargo zigbuild --target x86_64-unknown-linux-gnu.2.17 --release
## windows msvc
LIBRIME_INCLUDE_DIR=${PROJECT_PATH}/librime/msvc/dist/include LIBRIME_LIB_DIR=${PROJECT_PATH}/librime/msvc/dist/lib cargo xwin build --target x86_64-pc-windows-msvc --release
## macos
LIBRIME_INCLUDE_DIR=${PROJECT_PATH}/librime/mac/dist/include LIBRIME_LIB_DIR=${PROJECT_PATH}/librime/mac/dist/lib cargo zigbuild --target universal2-apple-darwin --release
# compress artifacts
sha256sum target/x86_64-pc-windows-msvc/release/rime_ls.exe
sha256sum target/universal2-apple-darwin/release/rime_ls
sha256sum target/x86_64-unknown-linux-gnu/release/rime_ls
tar czvf target/rime-ls-v${RIME_LS_VER}-x86_64-unknown-linux-gnu.tar.gz -Ctarget/x86_64-unknown-linux-gnu/release/ rime_ls
tar cjvf target/rime-ls-v${RIME_LS_VER}-universal2-apple-darwin.tar.bz2 -Ctarget/universal2-apple-darwin/release/ rime_ls
7z a ./target/rime-ls-v${RIME_LS_VER}-x86_64-pc-windows-msvc.7z ./target/x86_64-pc-windows-msvc/release/rime_ls.exe
Checksum
f49dd454ee063c9a1e21b3e7311d91225f2280f7756558d412de190e682c5033 target/x86_64-pc-windows-msvc/release/rime_ls.exe
8841326499ca0f2274a7287b447904c5cc1c7d831385d7ff0d8372a5ee68d645 target/universal2-apple-darwin/release/rime_ls
4c7d929df067daa4dd8ba4f1d078879f55a667457393a683533927e4c9e69c6c target/x86_64-unknown-linux-gnu/release/rime_ls
Full Changelog: v0.3.0...v0.4.0