GithubHelp home page GithubHelp logo

pistondevelopers / dyon_asteroids Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 1.0 13.78 MB

A demo game project for Dyon/Piston/Glium to test Dyon and research design for dyon_interactive

License: MIT License

GLSL 0.40% Rust 99.60%

dyon_asteroids's People

Contributors

bvssvni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

bvssvni

dyon_asteroids's Issues

failed with rust nightly build error[E0642]: patterns aren't allowed in methods without bodies

debian unstable, it failed to build with rust nightly.

cargo +nightly build
    Updating crates.io index
    Updating git repository `https://github.com/PistonDevelopers/dyon/`                                                                                       
  Downloaded wavefront_obj v3.0.0                                                                                                                             
  Downloaded piston2d-glium_graphics v0.25.0                                                                                                                  
  Downloaded pistoncore-sdl2_window v0.30.2                                                                                                                   
  Downloaded vecmath v0.2.0                                                                                                                                   
  Downloaded glium v0.14.0                                                                                                                                    
  Downloaded sdl2 v0.19.0                                                                                                                                     
  Downloaded rand v0.3.14                                                                                                                                     
  Downloaded current v0.1.1                                                                                                                                   
  Downloaded read_color v0.1.0                                                                                                                                
  Downloaded hyper v0.9.7                                                                                                                                     
  Downloaded piston_meta v0.26.1                                                                                                                              
  Downloaded range v0.3.1                                                                                                                                     
  Downloaded cookie v0.2.5                                                                                                                                    
  Downloaded typeable v0.1.2                                                                                                                                  
  Downloaded rustc-serialize v0.3.19                                                                                                                          
  Downloaded time v0.1.35                                                                                                                                     
  Downloaded piston v0.22.1                                                                                                                                   
  Downloaded solicit v0.4.4                                                                                                                                   
  Downloaded freetype-rs v0.8.0                                                                                                                               
  Downloaded image v0.10.0                                                                                                                                    
  Downloaded libc v0.2.12                                                                                                                                     
  Downloaded unicase v1.4.0                                                                                                                                   
  Downloaded url v1.1.1                                                                                                                                       
  Downloaded sdl2_mixer v0.18.0                                                                                                                               
  Downloaded language-tags v0.2.2                                                                                                                             
  Downloaded traitobject v0.0.1                                                                                                                               
  Downloaded num_cpus v0.2.12                                                                                                                                 
  Downloaded piston-texture v0.4.0                                                                                                                            
  Downloaded read_token v0.6.1                                                                                                                                
  Downloaded lazy_static v0.1.16                                                                                                                              
  Downloaded piston-shaders_graphics2d v0.1.0                                                                                                                 
  Downloaded smallvec v0.1.7                                                                                                                                  
  Downloaded glutin v0.5.2                                                                                                                                    
  Downloaded gl_generator v0.5.1                                                                                                                              
  Downloaded gl v0.6.0                                                                                                                                        
  Downloaded pistoncore-input v0.12.0                                                                                                                         
  Downloaded pistoncore-window v0.19.0                                                                                                                        
  Downloaded bitflags v0.6.0                                                                                                                                  
  Downloaded lazy_static v0.2.1                                                                                                                               
  Downloaded num v0.1.32                                                                                                                                      
  Downloaded log v0.3.6                                                                                                                                       
  Downloaded sdl2-sys v0.19.0                                                                                                                                 
  Downloaded piston-float v0.2.0                                                                                                                              
  Downloaded piston2d-graphics v0.16.0                                                                                                                        
  Downloaded mime v0.2.0                                                                                                                                      
  Downloaded shader_version v0.2.1                                                                                                                            
  Downloaded backtrace v0.1.8                                                                                                                                 
  Downloaded httparse v1.1.2                                                                                                                                  
  Downloaded wayland-client v0.5.12                                                                                                                           
  Downloaded matches v0.1.2                                                                                                                                   
  Downloaded kernel32-sys v0.2.2                                                                                                                              
  Downloaded piston-viewport v0.2.0                                                                                                                           
  Downloaded rustc_version v0.1.7                                                                                                                             
  Downloaded hpack v0.2.0                                                                                                                                     
  Downloaded freetype-sys v0.3.1                                                                                                                              
  Downloaded winapi v0.2.7                                                                                                                                    
  Downloaded wayland-window v0.2.3                                                                                                                            
  Downloaded x11-dl v2.6.0                                                                                                                                    
  Downloaded wayland-kbd v0.3.6                                                                                                                               
  Downloaded osmesa-sys v0.1.0                                                                                                                                
  Downloaded shared_library v0.1.4                                                                                                                            
  Downloaded khronos_api v1.0.0                                                                                                                               
  Downloaded xml-rs v0.3.4                                                                                                                                    
  Downloaded enum_primitive v0.1.0                                                                                                                            
  Downloaded num-iter v0.1.32                                                                                                                                 
  Downloaded png v0.5.1                                                                                                                                       
  Downloaded gif v0.8.0                                                                                                                                       
  Downloaded num-rational v0.1.32                                                                                                                             
  Downloaded byteorder v0.5.3                                                                                                                                 
  Downloaded jpeg-decoder v0.1.4                                                                                                                              
  Downloaded glob v0.2.11                                                                                                                                     
  Downloaded num-traits v0.1.32                                                                                                                               
  Downloaded pistoncore-event_loop v0.22.1                                                                                                                    
  Downloaded num-integer v0.1.32                                                                                                                              
  Downloaded idna v0.1.0                                                                                                                                      
  Downloaded num-bigint v0.1.32                                                                                                                               
  Downloaded num-complex v0.1.32                                                                                                                              
  Downloaded semver v0.1.20                                                                                                                                   
  Downloaded winapi-build v0.1.1                                                                                                                              
  Downloaded bitflags v0.7.0                                                                                                                                  
  Downloaded dlib v0.3.0                                                                                                                                      
  Downloaded wayland-sys v0.5.11                                                                                                                              
  Downloaded unicode-normalization v0.1.2                                                                                                                     
  Downloaded interpolation v0.1.0                                                                                                                             
  Downloaded flate2 v0.2.14                                                                                                                                   
  Downloaded pkg-config v0.3.8                                                                                                                                
  Downloaded dbghelp-sys v0.2.0                                                                                                                               
  Downloaded libz-sys v1.0.4                                                                                                                                  
  Downloaded backtrace-sys v0.1.4                                                                                                                             
  Downloaded debug-builders v0.1.0                                                                                                                            
  Downloaded cfg-if v0.1.0                                                                                                                                    
  Downloaded tempfile v2.1.3                                                                                                                                  
  Downloaded lzw v0.10.0                                                                                                                                      
  Downloaded crossbeam v0.2.9                                                                                                                                 
  Downloaded unicode-bidi v0.2.3                                                                                                                              
  Downloaded euclid v0.6.6                                                                                                                                    
  Downloaded rayon v0.3.1                                                                                                                                     
  Downloaded wayland-scanner v0.5.11                                                                                                                          
  Downloaded memmap v0.2.3                                                                                                                                    
  Downloaded pistoncore-glutin_window v0.26.1                                                                                                                 
  Downloaded color_quant v1.0.0                                                                                                                               
  Downloaded inflate v0.1.1                                                                                                                                   
  Downloaded libloading v0.2.2                                                                                                                                
  Downloaded gcc v0.3.28                                                                                                                                      
  Downloaded miniz-sys v0.1.7                                                                                                                                 
  Downloaded deque v0.3.1                                                                                                                                     
  Downloaded fs2 v0.2.4                                                                                                                                       
   Compiling winapi-build v0.1.1                                                                                                                              
   Compiling winapi v0.2.7                                                                                                                                    
   Compiling bitflags v0.7.0                                                                                                                                  
   Compiling libloading v0.2.2                                                                                                                                
   Compiling lazy_static v0.2.1                                                                                                                               
   Compiling semver v0.1.20                                                                                                                                   
   Compiling num-traits v0.1.32                                                                                                                               
   Compiling libc v0.2.12                                                                                                                                     
   Compiling gcc v0.3.28                                                                                                                                      
   Compiling matches v0.1.2                                                                                                                                   
   Compiling khronos_api v1.0.0                                                                                                                               
   Compiling unicode-normalization v0.1.2                                                                                                                     
   Compiling lazy_static v0.1.16                                                                                                                              
   Compiling pkg-config v0.3.8                                                                                                                                
   Compiling piston-float v0.2.0                                                                                                                              
   Compiling rustc-serialize v0.3.19                                                                                                                          
   Compiling log v0.3.6                                                                                                                                       
   Compiling bitflags v0.6.0                                                                                                                                  
error[E0642]: patterns aren't allowed in methods without bodies                                                                                               
   --> /home/david/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.3.19/src/serialize.rs:147:45                                             
    |                                                                                                                                                         
147 |                                             &f_name: &str,                                                                                              
    |                                             ^^^^^^^                                                                                                     
                                                                                                                                                              
   Compiling crossbeam v0.2.9                                                                                                                                 
   Compiling x11-dl v2.6.0                                                                                                                                    
   Compiling sdl2-sys v0.19.0                                                                                                                                 
   Compiling range v0.3.1                                                                                                                                     
   Compiling byteorder v0.5.3                                                                                                                                 
   Compiling shader_version v0.2.1                                                                                                                            
   Compiling cfg-if v0.1.0                                                                                                                                    
   Compiling color_quant v1.0.0                                                                                                                               
   Compiling httparse v1.1.2                                                                                                                                  
   Compiling lzw v0.10.0                                                                                                                                      
   Compiling traitobject v0.0.1                                                                                                                               
   Compiling debug-builders v0.1.0                                                                                                                            
   Compiling language-tags v0.2.2                                                                                                                             
   Compiling inflate v0.1.1                                                                                                                                   
   Compiling typeable v0.1.2                                                                                                                                  
   Compiling read_color v0.1.0                                                                                                                                
   Compiling smallvec v0.1.7                                                                                                                                  
   Compiling interpolation v0.1.0                                                                                                                             
   Compiling glob v0.2.11                                                                                                                                     
   Compiling piston-texture v0.4.0                                                                                                                            
   Compiling piston-shaders_graphics2d v0.1.0                                                                                                                 
   Compiling current v0.1.1                                                                                                                                   
   Compiling wavefront_obj v3.0.0                                                                                                                             
   Compiling xml-rs v0.3.4                                                                                                                                    
   Compiling unicode-bidi v0.2.3                                                                                                                              
   Compiling kernel32-sys v0.2.2                                                                                                                              
   Compiling dbghelp-sys v0.2.0                                                                                                                               
   Compiling rand v0.3.14                                                                                                                                     
   Compiling shared_library v0.1.4                                                                                                                            
error: aborting due to previous error                                                                                                                         
                                                                                                                                                              
For more information about this error, try `rustc --explain E0642`.                                                                                           
error: Could not compile `rustc-serialize`.                                                                                                                   
warning: build failed, waiting for other jobs to finish...
error: build failed                                    

Cannot compile because of dependencies

Hi, I want to have a try on the asteroid game, but when I try to compile it, I get the following error:

error[E0277]: the size for value values of type `Self` cannot be known at compilation time
  --> /home/steven/.cargo/registry/src/github.com-1ecc6299db9ec823/rayon-0.3.1/src/par_iter/internal.rs:25:5
   |
25 |     fn split_at(self, index: usize) -> (Self, Self);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
   |
   = help: the trait `std::marker::Sized` is not implemented for `Self`
   = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types--sized>
   = help: consider adding a `where Self: std::marker::Sized` bound
   = note: only the last element of a tuple may have a dynamically sized type

error[E0277]: the size for value values of type `Self` cannot be known at compilation time
  --> /home/steven/.cargo/registry/src/github.com-1ecc6299db9ec823/rayon-0.3.1/src/par_iter/internal.rs:42:5
   |
42 |     fn split_at(self, index: usize) -> (Self, Self, Self::Reducer);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
   |
   = help: the trait `std::marker::Sized` is not implemented for `Self`
   = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types--sized>
   = help: consider adding a `where Self: std::marker::Sized` bound
   = note: only the last element of a tuple may have a dynamically sized type

error: aborting due to 2 previous errors

I'm using nightly rust 1.28.0, and running rustup show outputs:

Default host: x86_64-unknown-linux-gnu

installed toolchains
--------------------

stable-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu (default)

active toolchain
----------------

nightly-x86_64-unknown-linux-gnu (default)
rustc 1.28.0-nightly (e3bf634e0 2018-06-28)

How can I solve the problem? Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.