Updated library to latest rust changes