Repository: brendanzab/gl-rs (language: rust)

Issue:
Missing gl.xml for Cargo build
Cargo does not seem to do a submodule update when I try to build gl-rs. I think we have to force cargo to do a submodule update.
### Steps To Reproduce

```
git clone https://github.com/bjz/gl-rs
cargo build
```
#### Output

```
   Compiling sax-rs v0.0.1 (https://github.com/bjz/sax-rs)
   Compiling gl_generator v0.0.1 (file:/home/colin/Source/gl-rs)
   Compiling gl v0.0.1 (file:/home/colin/Source/gl-rs)
src/lib.rs:38:1: 38:49 error: couldn't open file (no such file or directory (No such file or directory); path=deps/khronos-api/gl.xml; mode=open; access=read)
src/lib.rs:38 generate_gl_bindings!("gl", "gl", "core", "4.3")
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to previous error
Could not execute process `rustc src/lib.rs --crate-name gl --crate-type lib -C metadata=gl:-:0.0.1:-:file:/home/colin/Source/gl-rs -C extra-filename=-b892937f05034225 --out-dir /home/colin/Source/gl-rs/target -L /home/colin/Source/gl-rs/target -L /home/colin/Source/gl-rs/target/deps --extern gl_generator=/home/colin/Source/gl-rs/target/deps/libgl_generator-d72ff9e48f84526f.so` (status=101)
```



Discussion / hints:

Fix patch:
diff --git a/Cargo.toml b/Cargo.toml
index 23f06a76..92c2e526 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -7,6 +7,8 @@ authors = ["Brendan Zabarauskas <bjzaba@yahoo.com.au>",
         "Arseny Kapoulkine"
 ]
 
+build = "git submodule update --init --recursive"
+
 [[lib]]
 
 name = "gl"


Test patch: