Cargo replace directives are not meant for libraries, since they are not transitively inherited by the application.