-
Notifications
You must be signed in to change notification settings - Fork 690
Tracking Issue: Replace big cfg!
chunks with shorter aliases
#2188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
23 of 43 tasks
Labels
Comments
asomers
added a commit
to asomers/nix
that referenced
this issue
Nov 24, 2023
Add cfg aliases for linux_android, bsd, and freebsdlike. Use them in many places, though not everywhere they could theoretically be used. Fixes nix-rust#2188
asomers
added a commit
to asomers/nix
that referenced
this issue
Nov 24, 2023
Add cfg aliases for linux_android, bsd, and freebsdlike. Use them in many places, though not everywhere they could theoretically be used. Fixes nix-rust#2188
github-merge-queue bot
pushed a commit
that referenced
this issue
Nov 25, 2023
* Add more cfg aliases Add cfg aliases for linux_android, bsd, and freebsdlike. Use them in many places, though not everywhere they could theoretically be used. Fixes #2188 * Use apple_targets in build.rs Co-authored-by: SteveLauC <[email protected]> * whitespace Co-authored-by: SteveLauC <[email protected]> * Define a "solarish" target alias. * Describe cfg aliases in CONVENTIONS.md * solarish in line 803 * solarish in line 845 * fix fmt --------- Co-authored-by: SteveLauC <[email protected]>
cfg!
chunks with shorter aliasescfg!
chunks with shorter aliases
This was referenced Nov 26, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Background
With the crate
cfg_aliases
, we can replace common, chunkycfg!
s with shorter aliases, here are the aliases defined by us:any(ios, macos, watchos, tvos)
any(freebsd, dragonfly)
any(freebsd, dragonfly, netbsd, openbsd, apple_targets)
any(linux, android)
any(illumos, solaris)
#2205 has done most of the replacements, but there are still
cfg!
s that haven't been updated, we want to clear them all.TODO
Scan our source code, and replace the long
cfg!
chunks with shorter aliases:src/dir.rs
src/env.rs
(refactor: cfg for dir/env/errno #2214)src/errno.rs
(refactor: cfg for dir/env/errno #2214)src/fcntl.rs
(refactor: cfg for fcntl/fetures/ifaddrs/lib/poll/sched/time #2215)src/features.rs
src/ifaddrs.rs
(refactor: cfg for fcntl/fetures/ifaddrs/lib/poll/sched/time #2215)src/kmod.rs
src/lib.rs
(refactor: cfg for fcntl/fetures/ifaddrs/lib/poll/sched/time #2215)src/macro.rs
(refactor: cfg for fcntl/fetures/ifaddrs/lib/poll/sched/time #2215)src/mqueue.rs
(refactor: cfg for fcntl/fetures/ifaddrs/lib/poll/sched/time #2215)src/poll.rs
(refactor: cfg for fcntl/fetures/ifaddrs/lib/poll/sched/time #2215)src/pty.rs
(refactor: cfg for fcntl/fetures/ifaddrs/lib/poll/sched/time #2215)src/sched.rs
(refactor: cfg for fcntl/fetures/ifaddrs/lib/poll/sched/time #2215)src/time.rs
(refactor: cfg for fcntl/fetures/ifaddrs/lib/poll/sched/time #2215)src/unistd.rs
(refactor: cfg for unistd.rs #2216)src/mount/bsd.rs
(refactor: cfg for mount/* & if_.rs #2217)src/mount/linux.rs
src/mount/mod.rs
(refactor: cfg for mount/* & if_.rs #2217)src/net/if_.rs
(refactor: cfg for mount/* & if_.rs #2217)src/sys/aio.rs
(refactor: cfg for aio/epoll/event/mman/mod/resource/sendfile/signal #2218)src/sys/epoll.rs
(refactor: cfg for aio/epoll/event/mman/mod/resource/sendfile/signal #2218)src/sys/event.rs
(refactor: cfg for aio/epoll/event/mman/mod/resource/sendfile/signal #2218)src/sys/mman.rs
(refactor: cfg for aio/epoll/event/mman/mod/resource/sendfile/signal #2218)src/sys/mod.rs
(refactor: cfg for aio/epoll/event/mman/mod/resource/sendfile/signal #2218)src/sys/resource.rs
(refactor: cfg for aio/epoll/event/mman/mod/resource/sendfile/signal #2218)src/sys/sendfile.rs
(refactor: cfg for aio/epoll/event/mman/mod/resource/sendfile/signal #2218)src/sys/signal.rs
(refactor: cfg for aio/epoll/event/mman/mod/resource/sendfile/signal #2218)src/sys/stat.rs
(refactor: cfg for stat/statfs #2219)src/sys/statfs.rs
(refactor: cfg for stat/statfs #2219)src/sys/termios.rs
(refactor: cfg for termios.rs #2220)src/sys/time.rs
(refactor: cfg for sys/time.rs #2229)src/sys/uio.rs
src/sys/wait.rs
(refactor: cfg for time/uio/wait #2221)src/sys/ioctl/mod.rs
(refactor: cfg for ioctl/* & ptrace/* #2222)src/sys/ptrace/mod.rs
src/sys/ptrace/bsd.rs
(refactor: cfg for ioctl/* & ptrace/* #2222)src/sys/socket/addr.rs
(refactor: cfg for socket/addr.rs #2223)src/sys/socket/mod.rs
(refactor: cfg for socket/mod.rs #2224)src/sys/socket/sockopt.rs
(refactor: cfg for socket/sockopt.rs #2225)test/common/mod.rs
(refactor: cfg for test/* #2230)test/sys/mod.rs
test/sys/test_socket.rs
(refactor: cfg for test/* #2230)test/sys/test_sockopt.rs
(refactor: cfg for test/* #2230)test/test.rs
(refactor: cfg for test/* #2230)test/test_fcntl.rs
(refactor: cfg for test/* #2230)test/test_net.rs
test/test_poll.rs
(refactor: cfg for test/* #2230)test/test_sendfile.rs
(refactor: cfg for test/* #2230)test/test_stat.rs
(refactor: cfg for test/* #2230)test/test_time.rs
(refactor: cfg for test/* #2230)test/test_unistd.rs
(refactor: cfg for test/* #2230)The text was updated successfully, but these errors were encountered: