This library contains serveral modules that could help you write CKB contract with Rust.
See this article to learn how to write a contract in Rust.
See also ckb-contract-tool which helps you write tests.