I'm writing app with rust and opengl, done much work with matrices, but it isn't works. After some tests, I found, that location is -1. but shader's code contains used name. It isn't work when name is &str and used as name.as_ptr().cast() for casting to *const i8 type.
Where is readable docs? May anyone tell me?