This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[0, 97, 115, 109, 1, 0, 0, 0, 1, 225, 4, 79, 96, 3, 127, 127, 127, 1, 127, 96, 2, 127, 127, 1, 127, 96, 2, 127, 127, 0, 96, 5, 127, 127, 127, 127, 127, 0, 96, 1, 127, 0, 96, 2, 127, 126, 1, 126, 96, 1, 127, 1, 127, 96, 4, 127, 127, 127, 127, 0, 96, 3, 127, 127, 127, 0, 96, 1, 127, 1, 126, 96, 1, 126, 1, 127, 96, 2, 126, 126, 0, 96, 2, 126, 126, 1, 126, 96, 1, 126, 1, 126, 96, 1, 126, 0, 96, 2, 126, 127, 1, 127, 96, 3, 127, 126, 127, 1, 127, 96, 3, 126, 126, 126, 0, 96, 0, 0, 96, 2, 127, 127, 1, 126, 96, 4, 127, 126, 126, 126, 1, 127, 96, 0, 1, 126, 96, 3, 127, 127, 126, 1, 126, 96, 3, 127, 126, 126, 0, 96, 0, 1, 127, 96, 2, 127, 126, 1, 127, 96, 3, 126, 126, 127, 1, 126, 96, 4, 127, 127, 127, 126, 0, 96, 6, 127, 127, 127, 127, 127, 127, 0, 96, 3, 127, 126, 127, 0, 96, 2, 127, 126, 0, 96, 3, 126, 127, 127, 1, 127, 96, 6, 127, 127, 127, 127, 127, 127, 1, 127, 96, 4, 127, 127, 127, 127, 1, 127, 96, 7, 127, 127, 127, 127, 127, 127, 127, 1, 127, 96, 5, 127, 127, 127, 127, 127, 1, 127, 96, 3, 126, 126, 127, 1, 127, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Suppose you have a variable named `future` which implements the `Future` trait. | |
let future: impl Future = ...; | |
// This gist demonstrates how to run the future until completion using the `stdweb` crate. | |
// The various imports. | |
extern crate futures; | |
extern crate stdweb; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This code is under the MIT license. | |
The GLSL code was taken from https://github.com/mattdesl/glsl-fxaa and is also under the MIT license. | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* automatically generated by rust-bindgen */ | |
pub enum Struct_archive { } | |
pub enum Struct_archive_entry { } | |
pub enum Struct_stat { } | |
pub enum Struct_archive_acl { } | |
pub enum Struct_archive_entry_linkresolver { } | |
pub type archive_read_callback = ::libc::c_void; | |
pub type archive_skip_callback = ::libc::c_void; | |
pub type archive_seek_callback = ::libc::c_void; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/kernel/standalone/src/mem_alloc.rs b/kernel/standalone/src/mem_alloc.rs | |
index 83594be..0bb08b7 100644 | |
--- a/kernel/standalone/src/mem_alloc.rs | |
+++ b/kernel/standalone/src/mem_alloc.rs | |
@@ -13,7 +13,8 @@ | |
// You should have received a copy of the GNU General Public License | |
// along with this program. If not, see <https://www.gnu.org/licenses/>. | |
-use core::ops::Range; | |
+use alloc::alloc::{GlobalAlloc, Layout}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/linuxdoom-1.10/Makefile b/linuxdoom-1.10/Makefile | |
index 8c69794..e9b6459 100644 | |
--- a/linuxdoom-1.10/Makefile | |
+++ b/linuxdoom-1.10/Makefile | |
@@ -4,11 +4,11 @@ | |
# | |
# $Log:$ | |
# | |
-CC= gcc # gcc or g++ | |
+CC= /home/pierre/Projets/wasi-sdk-8.0/bin/clang # gcc or g++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/linuxdoom-1.10/Makefile b/linuxdoom-1.10/Makefile | |
index 8c69794..e9b6459 100644 | |
--- a/linuxdoom-1.10/Makefile | |
+++ b/linuxdoom-1.10/Makefile | |
@@ -4,11 +4,11 @@ | |
# | |
# $Log:$ | |
# | |
-CC= gcc # gcc or g++ | |
+CC= /path/to/wasi-sdk-8.0/bin/clang # gcc or g++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/linuxdoom-1.10/Makefile b/linuxdoom-1.10/Makefile | |
index 8c69794..38a1617 100644 | |
--- a/linuxdoom-1.10/Makefile | |
+++ b/linuxdoom-1.10/Makefile | |
@@ -4,11 +4,11 @@ | |
# | |
# $Log:$ | |
# | |
-CC= gcc # gcc or g++ | |
+CC= /home/pierre/Projets/wasi-sdk-8.0/bin/clang # gcc or g++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gfx and glium are Rust libraries that aim to provide a "rusty" abstraction over graphics programming APIs. | |
Both may look similar, and one of the questions that gets asked frequently on IRC is "what are the differences between gfx and glium?". Here is a comparison table: | |
| Gfx | Glium | |
-------------------------------------|-------------------------------------------------------------------------------------------------------------------|-------------------------------- | |
URL | <https://github.com/gfx-rs/gfx-rs> | <https://github.com/tomaka/glium> | |
History | Papers since Oct 2013. Really started in June 2014. | Private/confidential from Feb 201 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vec3 srgb_to_linear(vec3 c) { | |
return mix(c / 12.92, pow((c + 0.055) / 1.055, vec3(2.4)), step(0.04045, c)); | |
} |
NewerOlder