Skip to content

v0.4.1

Latest
Compare
Choose a tag to compare
@wlh320 wlh320 released this 25 Dec 13:16

v0.4.1

Feat

  • 支持 UTF-8 和 UTF-32 编码,按 LSP 3.17 标准在初始化时与客户端协商 (it also fixes #38)

Doc

  • 增加 nvim + blink.cmp 的配置示例 (Thanks to Kaiser-Yang #46)
  • 增加 nvim 下的多种功能的配置示例 (Thanks to Kaiser-Yang #44 #45 #46)

Chore

  • 更新依赖版本
  • 增加 Mac 和 Win 环境下的 CI (Thanks to asukaminato0721 #39 #40)

What's Changed

New Contributors

Full Changelog: v0.4.0...v0.4.1

Build

On my PC, script:

LIBRIME_VER=1.12.0
LIBRIME_HASH=c7ab639
PROJECT_PATH=~/build/rime-ls
RIME_LS_VER=0.4.1

# 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

sha256sum

fe2c5b3172bcd2620f62d3ba3603e6b7846e51ac87cf681b7138d1186610866d  target/x86_64-pc-windows-msvc/release/rime_ls.exe
0a6ceaa8b077bc23285fed888f973ece9aa930abf17ca02735c09ca8c709f290  target/universal2-apple-darwin/release/rime_ls
0635d8ffb273ebba8a4a2c4e2180f10bef083eafaaa54e08777b30aed5ac5512  target/x86_64-unknown-linux-gnu/release/rime_ls