rszlm

Crates.iorszlm
lib.rsrszlm
version0.1.12
created_at2024-06-23 06:34:37.640468+00
updated_at2025-09-01 09:45:01.086052+00
descriptionZLMediaKit rust api
homepage
repositoryhttps://github.com/BenLocal/rszlm
max_upload_size
id1280996
size79,455
benshi (BenLocal)

documentation

README

rszlm

ZLMediaKit rust api

构建说明

依赖

  1. rust-bindgen
    需要安装 Clang 环境。
    参考:bindgen requirements

  2. ZLMediaKit
    参考:快速开始

    • 编译并安装好 ZLMediaKit 后,设置环境变量 ZLM_DIR,该路径需包含 ZLMediaKit 的 includelibbin 文件夹,并将 bin 添加到 PATH 环境变量中。
    • 如果未设置 ZLM_DIRrszlm-sys 会自动拉取 ZLMediaKit 源码进行编译。

编译

./build_zlm.sh
cargo build

features

  • dynamicstatic编译

    • dynamic(默认):

      rszlm = { version = "*" }
      
    • static

      rszlm = { version = "*", features = ["static"] }
      
  • webrtc

    rszlm = { version = "*", features = ["webrtc"] }
    

参考

Commit count: 58

cargo fmt