// Copyright (c) 2017, Marty Mills <daggerbot@gmail.com>
// This software is available under the terms of the zlib license.
// See COPYING.md for more information.
externcrate gl_generator;usestd::env;usestd::fs::File;usestd::path::PathBuf;usegl_generator::{Api, Fallbacks, Profile, Registry, StructGenerator};fnmain(){let reg =Registry::new(Api::Gl,(1,1),Profile::Compatibility,Fallbacks::All,[]);let out_dir =PathBuf::from(env::var_os("OUT_DIR").unwrap());let out_path = out_dir.join("bindings.rs");letmut file =File::create(&out_path).unwrap();
reg.write_bindings(StructGenerator,&mut file).unwrap();}