]> git.lizzy.rs Git - rust.git/commit
Add shims for modules that we can't implement on CloudABI.
authorEd Schouten <ed@nuxi.nl>
Thu, 11 Jan 2018 10:21:42 +0000 (11:21 +0100)
committerEd Schouten <ed@nuxi.nl>
Thu, 11 Jan 2018 10:26:13 +0000 (11:26 +0100)
commitd882bb516e0998d7f9c2d049dcc618992a1a04c0
tree02370689e6220246902e84563623e84fb80c74a5
parent20745264ce3298147067fcb46e1f51efcb9670e4
Add shims for modules that we can't implement on CloudABI.

As discussed in #47268, libstd isn't ready to have certain functionality
disabled yet. Follow wasm's approach of adding no-op modules for all of
the features that we can't implement.

I've placed all of those shims in a shims/ subdirectory, so we (the
CloudABI folks) can experiment with removing them more easily. It also
ensures that the code that does work doesn't get polluted with lots of
useless boilerplate code.
13 files changed:
src/libstd/lib.rs
src/libstd/sys/cloudabi/args.rs
src/libstd/sys/cloudabi/mod.rs
src/libstd/sys/cloudabi/os.rs
src/libstd/sys/cloudabi/shims/args.rs [new file with mode: 0644]
src/libstd/sys/cloudabi/shims/env.rs [new file with mode: 0644]
src/libstd/sys/cloudabi/shims/fs.rs [new file with mode: 0644]
src/libstd/sys/cloudabi/shims/mod.rs [new file with mode: 0644]
src/libstd/sys/cloudabi/shims/net.rs [new file with mode: 0644]
src/libstd/sys/cloudabi/shims/os.rs [new file with mode: 0644]
src/libstd/sys/cloudabi/shims/pipe.rs [new file with mode: 0644]
src/libstd/sys/cloudabi/shims/process.rs [new file with mode: 0644]
src/libstd/sys_common/mod.rs