1 //! Exposes a number of modules with different kinds of strings.
3 //! Each module contains `&str` constants named `TINY`, `SMALL`, `MEDIUM`,
4 //! `LARGE`, and `HUGE`.
6 //! - The `TINY` string is generally around 8 bytes.
7 //! - The `SMALL` string is generally around 30-40 bytes.
8 //! - The `MEDIUM` string is generally around 600-700 bytes.
9 //! - The `LARGE` string is the `MEDIUM` string repeated 8x, and is around 5kb.
10 //! - The `HUGE` string is the `LARGE` string repeated 8x (or the `MEDIUM`
11 //! string repeated 64x), and is around 40kb.
13 //! Except for `mod emoji` (which is just a bunch of emoji), the strings were
14 //! pulled from (localizations of) rust-lang.org.
16 macro_rules! repeat8 {
18 concat!($s, $s, $s, $s, $s, $s, $s, $s)
22 macro_rules! define_consts {
24 pub const MEDIUM: &str = $s;
25 pub const LARGE: &str = repeat8!($s);
26 pub const HUGE: &str = repeat8!(repeat8!(repeat8!($s)));
31 pub const TINY: &str = "Mary had";
32 pub const SMALL: &str = "Mary had a little lamb, Little lamb";
34 "Rust is blazingly fast and memory-efficient: with no runtime or garbage
35 collector, it can power performance-critical services, run on embedded
36 devices, and easily integrate with other languages. Rust’s rich type system
37 and ownership model guarantee memory-safety and thread-safety — enabling you
38 to eliminate many classes of bugs at compile-time. Rust has great
39 documentation, a friendly compiler with useful error messages, and top-notch
40 tooling — an integrated package manager and build tool, smart multi-editor
41 support with auto-completion and type inspections, an auto-formatter, and
47 pub const TINY: &str = "速度惊";
48 pub const SMALL: &str = "速度惊人且内存利用率极高";
50 "Rust 速度惊人且内存利用率极高。由于\
53 还能轻松和其他语言集成。Rust 丰富的类型\
54 系统和所有权模型保证了内存安全和线程安全,\
56 Rust 拥有出色的文档、友好的编译器和清晰\
65 pub const TINY: &str = "Сотни";
66 pub const SMALL: &str = "Сотни компаний по";
68 "Сотни компаний по всему миру используют Rust в реальных\
69 проектах для быстрых кросс-платформенных решений с\
70 ограниченными ресурсами. Такие проекты, как Firefox,\
71 Dropbox и Cloudflare, используют Rust. Rust отлично\
72 подходит как для стартапов, так и для больших компаний,\
73 как для встраиваемых устройств, так и для масштабируемых\
74 web-сервисов. Мой самый большой комплимент Rust."
79 pub const TINY: &str = "😀😃";
80 pub const SMALL: &str = "😀😃😄😁😆😅🤣😂🙂🙃😉😊😇🥰😍🤩😘";
82 "😀😃😄😁😆😅🤣😂🙂🙃😉😊😇🥰😍🤩😘😗☺😚😙🥲😋😛😜🤪😝🤑🤗🤭🤫🤔🤐🤨😐😑😶😶🌫️😏😒\
83 🙄😬😮💨🤥😌😔😪🤤😴😷🤒🤕🤢🤮🤧🥵🥶🥴😵😵💫🤯��🥳🥸😎🤓🧐😕😟🙁☹😮😯😲😳🥺😦😧😨\
84 😰😥😢😭😱😖😣😞😓😩😫🥱😤😡😠🤬😈👿💀☠💩🤡👹👺👻👽👾🤖😺😸😹😻😼😽🙀😿😾🙈🙉🙊\
85 💋💌💘💝💖💗💓��💕💟❣💔❤️🔥❤️🩹❤🧡💛💚💙💜🤎🖤🤍💯💢💥💫💦💨🕳💬👁️🗨️🗨🗯💭💤👋\