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