Working rust static library called from c