-
-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macroquad-particles = "0.2" Will not compile #676
Comments
d17bee1#diff-c71544a874a6019b9949df6e660e8b78dd5c90a400242ec1170e441533a4e591 this might be the code of the fix, but apparently it did not made it to crates.io Will fix soon! |
Seeing the same problem a month later. Workaround: Put this in [dependencies]
macroquad = "0.4"
macroquad-particles = { git = "https://github.com/not-fl3/macroquad" } This is enough for the rust to pickup correct dependency from subdirectory (see confirmation on cargo here ) Any ETA on fix of |
Current error after Error
|
This is already fixed in the latest commit to |
Compiling macroquad-particles v0.2.0
error[E0574]: expected struct, variant or union type, found enum 'ShaderSource'
--> /home/daniel/.cargo/registry/src/index.crates.io-6f17d22bba15001f/macroquad-particles-0.2.0/src/lib.rs:568:17
|
568 | ShaderSource {
| ^^^^^^^^^^^^ not a struct, variant or union type
error[E0574]: expected struct, variant or union type, found enum 'ShaderSource'
--> /home/daniel/.cargo/registry/src/index.crates.io-6f17d22bba15001f/macroquad-particles-0.2.0/src/lib.rs:610:17
|
610 | ShaderSource {
| ^^^^^^^^^^^^ not a struct, variant or union type
error[E0061]: this method takes 3 arguments but 2 arguments were supplied
--> /home/daniel/.cargo/registry/src/index.crates.io-6f17d22bba15001f/macroquad-particles-0.2.0/src/lib.rs:642:17
|
642 | ctx.texture_set_filter(color_img, FilterMode::Nearest);
| ^^^^^^^^^^^^^^^^^^-------------------------------- an argument of type 'MipmapFilterMode' is missing
|
note: method defined here
--> /home/daniel/.cargo/registry/src/index.crates.io-6f17d22bba15001f/miniquad-0.4.0-alpha.10/src/graphics.rs:1125:8
|
1125 | fn texture_set_filter(
| ^^^^^^^^^^^^^^^^^^
help: provide the argument
|
642 | ctx.texture_set_filter(color_img, FilterMode::Nearest, /* MipmapFilterMode */);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Some errors have detailed explanations: E0061, E0574.
For more information about an error, try 'rustc --explain E0061'.
error: could not compile 'macroquad-particles' (lib) due to 3 previous errors
The text was updated successfully, but these errors were encountered: