Yangff

Results 15 issues of Yangff

文件: /include/storages/Bae.php ``` php //这里是效率瓶颈啊!! public function read($filename){ return $this->instance->get_object($this->domain,$this->get_file($filename)); } ``` 应该为: ``` php //这里是效率瓶颈啊!! public function read($filename){ return $this->instance->get_object($this->domain,$this->get_file($filename))->body; } ```

### Xmake 版本 xmake v2.8.9+20240321 ### 操作系统版本和架构 linux 6.7.3 ### 描述问题 我试图在一个C+rust的项目里使用no_std/nostdlib(可以先忽略C的这部分) 进行编译。 rust项目在独自的rsystem目录下,有自己的xmake.lua。 我使用`add_requires("cargo::rsystem", {...})` 为它添加 `std = false, main = false` 并使用toml管理它的cargo依赖。 这个库应该被编译为静态库并可以被c链接。 遇到的问题首先 `rsystem` 这个目标似乎会被编译成可执行文件,xmake为它生成的Cargo.toml并不会包含`[lib]` ,并且xmake会为它会生成一个main.rs(里面似乎还包含一些panic handler之类的东西,但这不应该是我自己添加吗?)而不是lib.rs进行编译。...

bug

### Did you test the latest `bugfix-2.1.x` code? Yes, and the problem still exists. ### Bug Description I did some modifications to my Ender3 Pro and then I ran into...

Bug: Potential ?

This is just a draft PR. No guarantee of its availability. I've finally gathered all the necessary parts for the Linux port, even though there's still a lot that's unfinished,...

### Xmake 版本 xmake v2.9.2+master.d8818c5b0 ### 操作系统版本和架构 all ### 描述问题 当前,xmake通过编译一个空的项目来复制cargo解析的rust项目依赖,并将产生的所有编译结果安装到目标路径。 https://github.com/xmake-io/xmake/issues/4049 解决了交叉编译时不能正确拷贝目标平台库文件的问题。 但是,在交叉编译时,rust会将需要在主机运行的编译期依赖,例如过程宏编译为可以在主机平台运行的文件,例如.dlls。这些目标文件不会被存放在 `target/arch/release/deps` , 而是 `target/release/deps`. Cargo会在产生rustc指令时同时将这两个目录放进`-L`中,从而产生正确的编译结果。 但是,通过add_files添加的rs文件只会在xmake复制后的安装路径中寻找依赖,这使得rustc无法在`use`对应包的时候提示找不到这个包,实际上,是找不到对应的在主机上运行的依赖。 产生类似如下的错误 ``` PS C:\Users\yangf\Documents\Projects\RE-UE4SS> rustc -C debuginfo=2 -C opt-level=3 -C...

bug