# std: different mechanism for disabling network dependency · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/0403f9647b8d506768dd1c7f53584c0117f3af84)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 0403f9647b8d506768dd1c7f53584c0117f3af84

Requested commit: 0403f9647b8d506768dd1c7f53584c0117f3af84

Commit: 0403f9647b8d506768dd1c7f53584c0117f3af84

Tree: bf2d1615d101226b2b892682be1ba0cf7b094414

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std: different mechanism for disabling network dependency

On Windows, it is sometimes problematic to depend on ws2_32.dll. Before,
users of std.Io.Threaded would have to call ioBasic() rather than io()
in order to avoid unnecessary dependencies on ws2_32.dll. Now, the
application can disable networking with std.Options.

This change is necessary due to moving networking functionality to
be based on Io.Operation, which is a tagged union.

```

## Parents

- [9c9af37a0c7324859727c9dbe5c080e966e38bde](https://git.cafe/gitcafe/zig/commit/9c9af37a0c7324859727c9dbe5c080e966e38bde?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/0403f9647b8d506768dd1c7f53584c0117f3af84?format=markdown)
