├── .github └── workflows │ └── build.yml ├── .gitignore ├── .idea ├── .gitignore ├── coolq-sdk-rust.iml ├── misc.xml ├── modules.xml ├── vcs.xml └── workspace.xml ├── .rustfmt.toml ├── Cargo.toml ├── LICENSE ├── README.md ├── cqrs_builder ├── Cargo.toml └── src │ ├── gen_app_json.rs │ └── lib.rs ├── cqrs_macro ├── Cargo.toml └── src │ └── lib.rs ├── src ├── api.rs ├── events │ ├── add_friend_request.rs │ ├── add_group_request.rs │ ├── discuss_message.rs │ ├── friend_add.rs │ ├── group_admin.rs │ ├── group_ban.rs │ ├── group_member_decrease.rs │ ├── group_member_increase.rs │ ├── group_message.rs │ ├── group_upload.rs │ ├── mod.rs │ └── private_message.rs ├── iconv.rs ├── lib.rs └── targets │ ├── cqcode.rs │ ├── group.rs │ ├── message.rs │ ├── mod.rs │ └── user.rs └── tests └── test_bench.rs /.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: build 2 | 3 | on: [push] 4 | 5 | jobs: 6 | build: 7 | 8 | runs-on: ubuntu-latest 9 | 10 | steps: 11 | - uses: actions/checkout@v2 12 | - name: Build 13 | run: cargo build --verbose 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Generated by Cargo 2 | # will have compiled files and executables 3 | /target/ 4 | /.idea/ 5 | 6 | # Remove Cargo.lock from gitignore if creating an executable, leave it for libraries 7 | # More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html 8 | Cargo.lock 9 | 10 | # These are backup files generated by rustfmt 11 | **/*.rs.bk 12 | -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /workspace.xml -------------------------------------------------------------------------------- /.idea/coolq-sdk-rust.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/workspace.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 29 | 30 | 32 | 33 | 43 | 44 |