rustmax/lib.rs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908
#![doc = include_str!("../doc-src/root-docs.md")]
#![allow(clippy::needless_doctest_main)]
/* ---------- */
#![no_std]
/* ---------- */
pub mod prelude {
//! The `rmx` prelude.
/* standard library preludes */
#[cfg(all(feature = "rmx-rustlib-core", not(feature = "rmx-rustlib-std")))]
pub use ::core::prelude::rust_2021::*;
#[cfg(feature = "rmx-rustlib-std")]
pub use ::std::prelude::rust_2021::*;
/* standard library macros */
#[cfg(feature = "rmx-rustlib-alloc")]
pub use ::alloc::{format, vec};
/* standard library exports that aren't in its prelude */
// Ordering is recommended by
// `clippy::comparison_chain` and if it's
// important enough that the compiler suggests
// using it instead of comparison operator syntax,
// let's put it in the prelude.
#[cfg(feature = "rmx-rustlib-core")]
pub use ::core::cmp::Ordering;
/* other preludes */
#[cfg(feature = "futures")]
pub use ::futures::prelude::*;
/* common non-std imports */
#[cfg(feature = "anyhow")]
pub use ::anyhow::{
Context as _,
anyhow, bail,
};
#[cfg(feature = "anyhow")]
pub use crate::extras::{
AnyResult, AnyError, A,
};
#[cfg(feature = "cfg-if")]
pub use ::cfg_if::cfg_if;
#[cfg(feature = "extension-trait")]
pub use ::extension_trait::extension_trait;
#[cfg(feature = "log")]
pub use ::log::{error, warn, info, debug, trace};
#[cfg(all(feature = "futures", feature = "rmx-feature-default"))]
pub use ::futures::{
executor::block_on,
future::Either,
};
#[cfg(feature = "itertools")]
pub use ::itertools::Itertools as _;
/* extras */
pub use crate::extras::{
default,
};
#[cfg(feature = "rmx-rustlib-core")]
pub use crate::bug;
#[cfg(feature = "rmx-rustlib-alloc")]
pub use crate::extras::S;
#[cfg(feature = "rmx-rustlib-alloc")]
pub use crate::extras::O;
#[cfg(feature = "extension-trait")]
pub use crate::extras::QuickToString as _;
#[cfg(feature = "extension-trait")]
pub use crate::extras::QuickToOwned as _;
#[cfg(feature = "extension-trait")]
pub use crate::extras::QuickClone as _;
#[cfg(feature = "extension-trait")]
pub use crate::extras::OptionExpect as _;
#[cfg(feature = "extension-trait")]
pub use crate::extras::ResultExpect as _;
#[cfg(all(feature = "extension-trait", feature = "anyhow"))]
pub use crate::extras::AnyResultExpect as _;
#[cfg(feature = "extension-trait")]
pub use crate::extras::ResultIgnore as _;
#[cfg(feature = "extension-trait")]
pub use crate::extras::RangeExt as _;
}
pub mod extras {
//! Additional tidbits defined by `rmx`.
/// Like 'unimplemented' but shorter to type.
#[cfg(feature = "rmx-rustlib-core")]
#[macro_export]
macro_rules! bug {
() => {
core::panic!("unexpected case (bug!)")
};
($($arg:tt)+) => {
core::panic!("unexpected case (bug!): {}", $crate::format_args!($($arg)+))
};
}
#[cfg(feature = "anyhow")]
pub use ::anyhow::{
Result as AnyResult,
Error as AnyError,
anyhow as A,
};
pub fn default<T: Default>() -> T {
Default::default()
}
pub fn init() {
#[cfg(feature = "env_logger")]
fn maybe_init_env_logger() {
crate::env_logger::Builder::new()
.filter_level(log::LevelFilter::Info)
.format_timestamp(None)
.parse_default_env()
.init();
}
#[cfg(not(feature = "env_logger"))]
fn maybe_init_env_logger() { }
maybe_init_env_logger();
}
pub fn init_crate_name(crate_name: &str) {
#[cfg(feature = "env_logger")]
fn maybe_init_env_logger(crate_name: &str) {
crate::env_logger::Builder::new()
.filter_module(crate_name, log::LevelFilter::Info)
.format_timestamp(None)
.parse_default_env()
.init();
}
#[cfg(not(feature = "env_logger"))]
fn maybe_init_env_logger(_crate_name: &str) { }
maybe_init_env_logger(crate_name);
}
pub fn recurse<F, R>(f: F) -> R
where F: FnOnce() -> R
{
// todo could grow stack here
f()
}
#[cfg(feature = "rmx-rustlib-alloc")]
#[allow(non_snake_case)]
pub fn S<T>(
s: &T,
) -> crate::alloc::string::String
where T: crate::alloc::string::ToString + ?Sized,
{
crate::alloc::string::ToString::to_string(s)
}
#[cfg(feature = "rmx-rustlib-alloc")]
#[allow(non_snake_case)]
pub fn O<T>(
o: &T,
) -> T::Owned
where T: crate::alloc::borrow::ToOwned + ?Sized,
{
crate::alloc::borrow::ToOwned::to_owned(o)
}
#[cfg(feature = "extension-trait")]
#[extension_trait::extension_trait]
pub impl<T> QuickToString for T
where T: crate::alloc::string::ToString + ?Sized,
{
#[allow(non_snake_case)]
fn S(&self) -> crate::alloc::string::String {
crate::alloc::string::ToString::to_string(self)
}
}
#[cfg(feature = "extension-trait")]
#[extension_trait::extension_trait]
pub impl<T> QuickToOwned for T
where T: crate::alloc::borrow::ToOwned,
{
type Owned = T::Owned;
#[allow(non_snake_case)]
fn O(&self) -> Self::Owned {
crate::alloc::borrow::ToOwned::to_owned(self)
}
}
#[cfg(feature = "extension-trait")]
#[extension_trait::extension_trait]
pub impl<T> QuickClone<T> for T
where T: Clone
{
#[allow(non_snake_case)]
fn C(&self) -> T {
self.clone()
}
}
#[cfg(feature = "extension-trait")]
#[extension_trait::extension_trait]
pub impl<T> OptionExpect<T> for Option<T> {
#[track_caller]
#[allow(non_snake_case)]
fn X(self) -> T {
match self {
Some(v) => v,
None => panic!("impossible `None` option"),
}
}
}
#[cfg(feature = "extension-trait")]
#[extension_trait::extension_trait]
pub impl<T, E> ResultExpect<T, E> for Result<T, E>
where E: core::error::Error
{
#[track_caller]
#[allow(non_snake_case)]
fn X(self) -> T {
match self {
Ok(v) => v,
Err(e) => panic!("impossible `Err` result: {e}"),
}
}
}
#[cfg(all(feature = "extension-trait", feature = "anyhow"))]
#[extension_trait::extension_trait]
pub impl<T> AnyResultExpect<T> for AnyResult<T>
{
#[track_caller]
#[allow(non_snake_case)]
fn X(self) -> T {
match self {
Ok(v) => v,
Err(e) => panic!("impossible `Err` result: {e}"),
}
}
}
/// Ignore a `Result`.
///
/// This is nice because the common idiom of `let _ = ...` is untyped
/// and can accidentally be applied to non-`Result` types like `Future`s.
#[cfg(feature = "extension-trait")]
#[extension_trait::extension_trait]
pub impl<T, E> ResultIgnore<T, E> for Result<T, E>
{
#[track_caller]
#[allow(non_snake_case)]
fn I(self) {
let _ = self;
}
}
// todo: define this for generic Range<N>
// todo: put this in a crate and elaborate
#[cfg(feature = "extension-trait")]
#[extension_trait::extension_trait]
pub impl RangeExt for core::ops::Range<usize> {
fn from_start_len(start: usize, len: usize) -> Option<core::ops::Range<usize>> {
Some(start..start.checked_add(len)?)
}
fn subrange(&self, sub: core::ops::Range<usize>) -> Option<core::ops::Range<usize>> {
if sub.start >= self.len() || sub.end > self.len() {
return None;
}
let new_start = self.start.checked_add(sub.start);
let new_end = self.start.checked_add(sub.end);
match (new_start, new_end) {
(Some(new_start), Some(new_end)) => Some(new_start..new_end),
_ => None,
}
}
fn checked_sub(&self, other: usize) -> Option<core::ops::Range<usize>> {
let new_start = self.start.checked_sub(other);
let new_end = self.end.checked_sub(other);
match (new_start, new_end) {
(Some(new_start), Some(new_end)) => Some(new_start..new_end),
_ => None,
}
}
}
}
/* ---------- */
#[cfg(feature = "rmx-rustlib-core")]
#[doc(inline)]
pub extern crate core;
#[cfg(feature = "rmx-rustlib-alloc")]
#[doc(inline)]
pub extern crate alloc;
#[cfg(feature = "rmx-rustlib-std")]
#[doc(inline)]
pub extern crate std;
#[cfg(feature = "rmx-rustlib-proc_macro")]
#[doc(inline)]
pub extern crate proc_macro;
/* ---------- */
#[cfg(feature = "ahash")]
pub mod ahash {
#![doc = include_str!("../doc-src/crate-ahash.md")]
pub use ::ahash::*;
}
#[cfg(feature = "anyhow")]
pub mod anyhow {
//! Easy error handling.
//!
//! See crate [`::anyhow`].
pub use ::anyhow::*;
}
#[cfg(feature = "axum")]
pub mod axum {
//! Web application framework based on [`tokio`](super::tokio).
//!
//! See crate [`::axum`].
pub use ::axum::*;
}
#[cfg(feature = "backtrace")]
pub mod backtrace {
//! Callstack backtraces on demand.
//!
//! See crate [`::backtrace`].
pub use ::backtrace::*;
}
#[cfg(feature = "base64")]
pub mod base64 {
//! Base-64 encoding and decoding.
//!
//! See crate [`::base64`].
pub use ::base64::*;
}
#[cfg(feature = "bindgen")]
pub mod bindgen {
//! Generate Rust bindings to C and C++ libraries.
//!
//! See crate [`::bindgen`].
pub use ::bindgen::*;
}
#[cfg(feature = "bitflags")]
pub mod bitflags {
#![doc = include_str!("../doc-src/crate-bitflags.md")]
pub use ::bitflags::*;
}
#[cfg(feature = "blake3")]
pub mod blake3 {
//! The BLAKE3 cryptographic hash function.
//!
//! See crate [`::blake3`].
pub use ::blake3::*;
}
#[cfg(feature = "byteorder")]
pub mod byteorder {
//! Big-endian and little-endian encoding.
//!
//! See crate [`::byteorder`].
pub use ::byteorder::*;
}
#[cfg(feature = "bytes")]
pub mod bytes {
//! Abstractions for working with byte buffers: [`Bytes`], [`Buf`], and [`BufMut`].
//!
//! See crate [`::bytes`].
pub use ::bytes::*;
}
#[cfg(feature = "cc")]
pub mod cc {
//! A basic cross-platform C compiler driver.
//!
//! See crate [`::cc`].
pub use ::cc::*;
}
#[cfg(feature = "cfg-if")]
pub mod cfg_if {
//! A macro for writing conditional compilation as `if` / `else` blocks.
//!
//! See crate [`::cfg_if`].
pub use ::cfg_if::*;
}
#[cfg(feature = "chrono")]
pub mod chrono {
//! Dates and time (legacy).
//!
//! See crate [`::chrono`].
pub use ::chrono::*;
}
#[cfg(feature = "clap")]
pub mod clap {
//! Command line parsing.
//!
//! See crate [`::clap`].
pub use ::clap::*;
}
#[cfg(feature = "ctrlc")]
pub mod ctrlc {
//! Simple handling of CTRL-C for CLI programs.
//!
//! See crate [`::ctrlc`].
pub use ::ctrlc::*;
}
#[cfg(feature = "crossbeam")]
pub mod crossbeam {
//! Concurrency tools to supplement [`std::sync`], including fast channels.
//!
//! See crate [`::crossbeam`].
pub use ::crossbeam::*;
}
#[cfg(feature = "cxx")]
pub mod cxx {
//! C++ bridge runtime support; paired with [`cxx_build`](super::cxx_build).
//!
//! See crate [`::cxx`].
pub use ::cxx::*;
}
#[cfg(feature = "cxx-build")]
pub mod cxx_build {
//! C++ bridge generator; paired with [`cxx`](super::cxx).
//!
//! See crate [`::cxx`].
pub use ::cxx::*;
}
#[cfg(feature = "derive_more")]
pub mod derive_more {
//! `derive` for more standard traits.
//!
//! See crate [`::derive_more`].
pub use ::derive_more::*;
}
#[cfg(feature = "env_logger")]
pub mod env_logger {
//! A basic logger to use with the [`log`](super::log) crate.
//!
//! See crate [`::env_logger`].
pub use ::env_logger::*;
}
#[cfg(feature = "extension-trait")]
pub mod extension_trait {
//! A macro for defining extension methods to external types.
//!
//! See crate [`::extension_trait`].
pub use ::extension_trait::*;
}
#[cfg(feature = "futures")]
pub mod futures {
//! Abstractions for asynchronous programming.
//!
//! See crate [`::futures`].
pub use ::futures::*;
}
#[cfg(feature = "hex")]
pub mod hex {
//! Encoding and decoding hexidecimal strings.
//!
//! See crate [`::hex`].
pub use ::hex::*;
}
#[cfg(feature = "http")]
pub mod http {
//! Shared definitions related to the HTTP protocol.
//!
//! See crate [`::http`].
pub use ::http::*;
}
#[cfg(feature = "hyper")]
pub mod hyper {
//! HTTP, versions 1 and 2.
//!
//! See crate [`::hyper`].
pub use ::hyper::*;
}
#[cfg(feature = "itertools")]
pub mod itertools {
//! Additional methods for iterators.
//!
//! See crate [`::itertools`].
pub use ::itertools::*;
}
#[cfg(feature = "jiff")]
pub mod jiff {
//! Dates and time.
//!
//! See crate [`::jiff`].
pub use ::jiff::*;
}
#[cfg(feature = "json5")]
pub mod json5 {
//! JSON5, a superset of JSON with expanded syntax.
//!
//! See crate [`::json5`].
pub use ::json5::*;
}
#[cfg(feature = "libc")]
pub mod libc {
//! Bindings to the C standard library.
//!
//! See crate [`::libc`].
pub use ::libc::*;
}
#[cfg(feature = "log")]
pub mod log {
//! A simple logging framework.
//!
//! See crate [`::log`].
pub use ::log::*;
}
#[cfg(feature = "mime")]
pub mod mime {
//! MIME media types.
//!
//! See crate [`::mime`].
pub use ::mime::*;
}
#[cfg(feature = "nom")]
pub mod nom {
//! An efficient parser combinator.
//!
//! See crate [`::nom`].
pub use ::nom::*;
}
#[cfg(feature = "num-bigint")]
pub mod num_bigint {
//! Arbitrary-sized integers.
//!
//! See crate [`::num_bigint`].
pub use ::num_bigint::*;
}
#[cfg(feature = "num_cpus")]
pub mod num_cpus {
//! Get the number of CPUS on a machine.
//!
//! See crate [`::num_cpus`].
pub use ::num_cpus::*;
}
#[cfg(feature = "num_enum")]
pub mod num_enum {
//! Conversions between numbers and enums.
//!
//! See crate [`::num_enum`].
pub use ::num_enum::*;
}
#[cfg(feature = "proc-macro2")]
pub mod proc_macro2 {
//! A preferred wrapper around the standard [`proc_macro`] crate.
//!
//! See crate [`::proc_macro2`].
pub use ::proc_macro2::*;
}
#[cfg(feature = "proptest")]
pub mod proptest {
//! Testing over generated inputs, ala QuickCheck.
//!
//! See crate [`::proptest`].
pub use ::proptest::*;
}
#[cfg(feature = "quote")]
pub mod quote {
//! The `quote!` macro for turning code blocks into source tokens.
//!
//! See crate [`::quote`].
pub use ::quote::*;
}
#[cfg(feature = "rand")]
pub mod rand {
//! Random number generators.
//!
//! See crate [`::rand`].
pub use ::rand::*;
}
#[cfg(feature = "rand_chacha")]
pub mod rand_chacha {
//! The ChaCha cryptographically-secure random number generators.
//!
//! See crate [`::rand_chacha`].
pub use ::rand_chacha::*;
}
#[cfg(feature = "rand_pcg")]
pub mod rand_pcg {
//! The PCG non-cryptographically-secure random number generators.
//!
//! See crate [`::rand_pcg`].
pub use ::rand_pcg::*;
}
#[cfg(feature = "rayon")]
pub mod rayon {
//! Parallel iterators and other parallel processing tools.
//!
//! See crate [`::rayon`].
pub use ::rayon::*;
}
#[cfg(feature = "regex")]
pub mod regex {
//! Regular expressions.
//!
//! See crate [`::regex`].
pub use ::regex::*;
}
#[cfg(feature = "reqwest")]
pub mod reqwest {
//! Simple HTTP requests, synchronous and asynchronous.
//!
//! See crate [`::reqwest`].
pub use ::reqwest::*;
}
#[cfg(feature = "rustyline")]
pub mod rustyline {
//! Command-line input reading with history.
//!
//! See crate [`::rustyline`].
pub use ::rustyline::*;
}
#[cfg(feature = "semver")]
pub mod semver {
//! The software versioning standard used by Rust
//!
//! See crate [`::semver`].
pub use ::semver::*;
}
#[cfg(feature = "serde")]
pub mod serde {
//! The standard Rust serialization framework.
//!
//! See crate [`::serde`].
pub use ::serde::*;
}
#[cfg(feature = "serde_json")]
pub mod serde_json {
//! JSON serialization / deserialization with [`serde`](super::serde).
//!
//! See crate [`::serde_json`].
pub use ::serde_json::*;
}
#[cfg(feature = "sha2")]
pub mod sha2 {
//! The SHA2 cryptographic hash functions.
//!
//! See crate [`::sha2`].
pub use ::sha2::*;
}
#[cfg(feature = "socket2")]
pub mod socket2 {
//! Low-level network socket programming beyond [`std::net`].
//!
//! See crate [`::socket2`].
pub use ::socket2::*;
}
#[cfg(feature = "static_assertions")]
pub mod static_assertions {
//! Compile-time assertions about constants, types, etc.
//!
//! See crate [`::static_assertions`].
pub use ::static_assertions::*;
}
#[cfg(feature = "syn")]
pub mod syn {
//! A Rust parser used by procedural macros.
//!
//! See crate [`::syn`].
pub use ::syn::*;
}
#[cfg(feature = "tempfile")]
pub mod tempfile {
//! Temporary files and directories.
//!
//! See crate [`::tempfile`].
pub use ::tempfile::*;
}
#[cfg(feature = "tera")]
pub mod tera {
//! A text template engine based on Jinja2.
//!
//! See crate [`::tera`].
pub use ::tera::*;
}
#[cfg(feature = "termcolor")]
pub mod termcolor {
//! Cross-platform library for writing colored output to the terminal.
//!
//! See crate [`::termcolor`].
pub use ::termcolor::*;
}
#[cfg(feature = "thiserror")]
pub mod thiserror {
//! Tools for defining custom error types.
//!
//! See crate [`::thiserror`].
pub use ::thiserror::*;
}
#[cfg(feature = "tokio")]
pub mod tokio {
//! An async task runtime and I/O library.
//!
//! See crate [`::tokio`].
pub use ::tokio::*;
}
#[cfg(feature = "tower")]
pub mod tower {
//! Service request/response abstraction (HTTP middleware)
//! for [`tokio`](super::tokio) and [`axum`](super::axum).
//!
//! See crate [`::tower`].
pub use ::tower::*;
}
#[cfg(feature = "toml")]
pub mod toml {
//! TOML serialization / deserialization with `serde`.
//!
//! See crate [`::toml`].
pub use ::toml::*;
}
#[cfg(feature = "unicode-segmentation")]
pub mod unicode_segmentation {
//! Splitting strings on grapheme cluster, word, and sentence boundaries.
//!
//! See crate [`::unicode_segmentation`].
pub use ::unicode_segmentation::*;
}
#[cfg(feature = "url")]
pub mod url {
//! URL parsing and data structures.
//!
//! See crate [`::url`].
pub use ::url::*;
}
#[cfg(feature = "walkdir")]
pub mod walkdir {
//! Efficient directory traversal.
//!
//! See crate [`::walkdir`].
pub use ::walkdir::*;
}
#[cfg(feature = "xshell")]
pub mod xshell {
//! A Swiss-army knife for writing shell-style scripts in Rust.
//!
//! See crate [`::xshell`].
pub use ::xshell::*;
}