Imagine the following example:
let SHADER: &\'static str = \"
#version 140
attribute vec2 v_coord;
uniform sampler2D fbo_texture;
varying vec2 f_texcoor
I believe you are looking for the include_str!() macro:
static SHADER: &'static str = include_str!("shader.glsl");
shader.glsl
file should be located right beside the source file for this to work.
There's also include_bytes!() for non-UTF-8 data:
static SHADER: &'static [u8] = include_bytes!("main.rs");
Don't conflate these with include!, which imports a file as Rust code.