Skip to content
forked from ProtobufBot/pbrq

基于Rust的QQ协议接口运行程序

Notifications You must be signed in to change notification settings

dongeast/pbbot-rq

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pbbot-rq

基于Rust的QQ协议接口运行程序

报错问题解决

[1]error[E0554]Cancel changes

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> C:\Users\Dongeast\.cargo\git\checkouts\rs-qq-f947ea2807e050e7\e7c6131\rq-engine\src\lib.rs:1:1
  |
1 | #![feature(type_alias_impl_trait)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

   Compiling hyper-tls v0.5.0
   Compiling axum v0.4.8
   Compiling reqwest v0.11.10
For more information about this error, try `rustc --explain E0554`.
error: could not compile `rq-engine` due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed

error: build failed

[1]解决方法

执行命令:rustup override set nightly后再运行build命令编译!

接口的访问方法

使用PostMan等工具进行访问测试

  • 第一步:打开我们的PostMan工具,如果我们想要访问我们已经运行的pbbot-rq程序的接口,我们需要在Headers中添加一条配置,设置Content-typeapplication/json;charset=UTF-8访问设置如下: Header
  • 第二步:在Body中填写我们的参数列表,选择访问方式为POST/GET 设置参数列表和访问方式

接口的参数和访问方式

About

基于Rust的QQ协议接口运行程序

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%