# Generating lockfile without network access

**URL:** <https://users.rust-lang.org/t/generating-lockfile-without-network-access/9007>\
**Category:** help\
**Created:** [January 19, 2017, 9:01pm UTC](https://users.rust-lang.org/t/generating-lockfile-without-network-access/9007 "2017-01-19T21:01:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pylaligand](https://sea1.discourse-cdn.com/flex019/user_avatar/users.rust-lang.org/pylaligand/32/3439_2.png) [@pylaligand](https://users.rust-lang.org/u/pylaligand)\
**Post date:** [January 19, 2017, 9:01pm UTC](https://users.rust-lang.org/t/generating-lockfile-without-network-access/9007/1 "2017-01-19T21:01:04Z")

</div>

I'm trying to generate a lockfile for a crate but I would like to prevent any sort of network access to ensure the build works offline. I tried "cargo generate-lockfile --frozen" but unfortunately it looks like "frozen" implies "locked" ([https://github.com/rust-lang/cargo/blob/master/src/cargo/util/config.rs#L365](https://github.com/rust-lang/cargo/blob/master/src/cargo/util/config.rs#L365)). Any reason why and any alternative?

---

<div class="post-metadata">

**Author:** ![brson](https://sea1.discourse-cdn.com/flex019/user_avatar/users.rust-lang.org/brson/32/10193_2.png) [@brson](https://users.rust-lang.org/u/brson)\
**Post date:** [January 20, 2017, 4:23am UTC](https://users.rust-lang.org/t/generating-lockfile-without-network-access/9007/2 "2017-01-20T04:23:42Z")

</div>

I need this functionality too. Here's the cargo issue: [https://github.com/rust-lang/cargo/issues/3479](https://github.com/rust-lang/cargo/issues/3479)

---

<div class="post-metadata">

**Author:** ![steffahn](https://sea1.discourse-cdn.com/flex019/user_avatar/users.rust-lang.org/steffahn/32/47569_2.png) [@steffahn](https://users.rust-lang.org/u/steffahn)\
**Post date:** [January 12, 2023, 8:42am UTC](https://users.rust-lang.org/t/generating-lockfile-without-network-access/9007/3 "2023-01-12T08:42:33Z")

</div>

Closed on January 12, 2023, 8:42am UTC


