[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-5714":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":10,"pushedAt":10,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":16,"starSnapshotCount":16,"syncStatus":27,"lastSyncTime":28,"discoverSource":29},5714,"crab","crablang\u002Fcrab","crablang","A community fork of a language named after a plant fungus. All of the memory-safe features you love, now with 100% less bureaucracy! ","https:\u002F\u002Fwww.crablang.org",null,"Rust",5092,63,33,4,0,1,8,62.72,"Other",false,"master",[],"2026-06-12 04:00:26","\u003Cimg src=\"https:\u002F\u002Fuser-images.githubusercontent.com\u002F8974888\u002F231858967-7c37bf1e-335b-4f5a-9760-da97be9f54bb.png\" width=\"200\" \u002F>\n\n# The Crab Programming Language\n\n[![CrabLang Community](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FCrabLang_Community%20-Join_us-brightgreen?style=plastic&logo=discord)](https:\u002F\u002Fcommunity.crablang.org)\n\nThis is the main source code repository for [Crab](https:\u002F\u002Fgithub.com\u002Fcrablang\u002Fcrab). It contains the compiler,\nstandard library, and documentation.\n\n*Note*: The master branch contains the code for the CrabLang playground—aka __*The One True Crab*__—which is not guaranteed to be up to date with the upstream project. If you are looking for the renamed toolchain that simply mirrors upstream, check out [the stable branch](https:\u002F\u002Fgithub.com\u002Fcrablang\u002Fcrab\u002Ftree\u002Fstable) and follow the instructions there. Also note that this README is for _users_ rather than _contributors_.\n\nIf you wish to _contribute_ to the compiler, you should read [CONTRIBUTING.md](CONTRIBUTING.md) instead.\n\n[CrabLang]: https:\u002F\u002Fwww.crablang.org\u002F\n\n## Quick Start\n\nTo get started with the renamed CrabLang toolchain, run the following:\n\n```sh\nsh \u003C(curl https:\u002F\u002Finstall.crablang.org -L)\n```\n\n\\* currently Unix only\n\n\u003C!-- \nRead [\"Installation\"] from [The Book].\n\n[\"Installation\"]: https:\u002F\u002Fdoc.crablang.org\u002Fbook\u002Fch01-01-installation.html\n[The Book]: https:\u002F\u002Fdoc.crablang.org\u002Fbook\u002Findex.html -->\n\n## Installing from Source\n\nThe Crab build system uses a Python script called `x.py` to build the compiler,\nwhich manages the bootstrapping process. It lives at the root of the project.\n\nThe `x.py` command can be run directly on most Unix systems in the following\nformat:\n\n```sh\n.\u002Fx.py \u003Csubcommand> [flags]\n```\n\nThis is how the documentation and examples assume you are running `x.py`.\n\nSome alternative ways are:\n\n```sh\n# On a Unix shell if you don't have the necessary `python3` command\n.\u002Fx \u003Csubcommand> [flags]\n\n# On the Windows Command Prompt (if .py files are configured to run Python)\nx.py \u003Csubcommand> [flags]\n\n# You can also run Python yourself, e.g.:\npython x.py \u003Csubcommand> [flags]\n```\n\nMore information about `x.py` can be found by running it with the `--help` flag\nor reading the [crabc dev guide][crabcguidebuild].\n\n[gettingstarted]: https:\u002F\u002Fcrabc-dev-guide.crablang.org\u002Fgetting-started.html\n[crabcguidebuild]: https:\u002F\u002Fcrabc-dev-guide.crablang.org\u002Fbuilding\u002Fhow-to-build-and-run.html\n\n### Dependencies\n\nMake sure you have installed the dependencies:\n\n* `python` 3 or 2.7\n* `git`\n* A C compiler (when building for the host, `cc` is enough; cross-compiling may\n  need additional compilers)\n* `curl` (not needed on Windows)\n* `pkg-config` if you are compiling on Linux and targeting Linux\n* `libiconv` (already included with glibc on Debian-based distros)\n\nTo build Crabgo, you'll also need OpenSSL (`libssl-dev` or `openssl-devel` on\nmost Unix distros).\n\nIf building LLVM from source, you'll need additional tools:\n\n* `g++`, `clang++`, or MSVC with versions listed on\n  [LLVM's documentation](https:\u002F\u002Fllvm.org\u002Fdocs\u002FGettingStarted.html#host-c-toolchain-both-compiler-and-standard-library)\n* `ninja`, or GNU `make` 3.81 or later (Ninja is recommended, especially on\n  Windows)\n* `cmake` 3.13.4 or later\n* `libstdc++-static` may be required on some Linux distributions such as Fedora\n  and Ubuntu\n\nOn tier 1 or tier 2 with host tools platforms, you can also choose to download\nLLVM by setting `llvm.download-ci-llvm = true`.\nOtherwise, you'll need LLVM installed and `llvm-config` in your path.\nSee [the crabc-dev-guide for more info][sysllvm].\n\n[sysllvm]: https:\u002F\u002Fcrabc-dev-guide.crablang.org\u002Fbuilding\u002Fnew-target.html#using-pre-built-llvm\n\n\n### Building on a Unix-like system\n\n1. Clone the [source] with `git`:\n\n   ```sh\n   git clone https:\u002F\u002Fgithub.com\u002Fcrablang\u002Fcrab.git\n   cd crab\n   ```\n\n[source]: https:\u002F\u002Fgithub.com\u002Fcrablang\u002Fcrablang\n\n2. Configure the build settings:\n\n   The CrabLang build system uses a file named `config.toml` in the root of the\n   source tree to determine various configuration settings for the build.\n   Set up the defaults intended for distros to get started. You can see a full\n   list of options in `config.example.toml`.\n\n   ```sh\n   printf 'profile = \"user\" \\nchangelog-seen = 2 \\n' > config.toml\n   ```\n\n   If you plan to use `x.py install` to create an installation, it is\n   recommended that you set the `prefix` value in the `[install]` section to a\n   directory.\n\n3. Build and install:\n\n   ```sh\n   .\u002Fx.py build && .\u002Fx.py install\n   ```\n\n   When complete, `.\u002Fx.py install` will place several programs into\n   `$PREFIX\u002Fbin`: `crabc`, the CrabLang compiler, and `crablangdoc`, the\n   API-documentation tool. If you've set `profile = \"user\"` or\n   `build.extended = true`, it will also include [Crabgo], CrabLang's package\n   manager.\n\n[Crabgo]: https:\u002F\u002Fgithub.com\u002Fcrablang\u002Fcrabgo\n\n### Building on Windows\n\nOn Windows, we suggest using [winget] to install dependencies by running the\nfollowing in a terminal:\n\n```powershell\nwinget install -e Python.Python.3\nwinget install -e Kitware.CMake\nwinget install -e Git.Git\n```\n\nThen edit your system's `PATH` variable and add: `C:\\Program Files\\CMake\\bin`.\nSee\n[this guide on editing the system `PATH`](https:\u002F\u002Fwww.java.com\u002Fen\u002Fdownload\u002Fhelp\u002Fpath.html)\nfrom the Java documentation.\n\n[winget]: https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwinget-cli\n\nThere are two prominent ABIs in use on Windows: the native (MSVC) ABI used by\nVisual Studio and the GNU ABI used by the GCC toolchain. Which version of CrabLang\nyou need depends largely on what C\u002FC++ libraries you want to interoperate with.\nUse the MSVC build of CrabLang to interop with software produced by Visual Studio\nand the GNU build to interop with GNU software built using the MinGW\u002FMSYS2\ntoolchain.\n\n#### MinGW\n\n[MSYS2][msys2] can be used to easily build CrabLang on Windows:\n\n[msys2]: https:\u002F\u002Fwww.msys2.org\u002F\n\n1. Download the latest [MSYS2 installer][msys2] and go through the installer.\n\n2. Run `mingw32_shell.bat` or `mingw64_shell.bat` from the MSYS2 installation\n   directory (e.g. `C:\\msys64`), depending on whether you want 32-bit or 64-bit\n   CrabLang. (As of the latest version of MSYS2 you have to run `msys2_shell.cmd\n   -mingw32` or `msys2_shell.cmd -mingw64` from the command line instead.)\n\n3. From this terminal, install the required tools:\n\n   ```sh\n   # Update package mirrors (may be needed if you have a fresh install of MSYS2)\n   pacman -Sy pacman-mirrors\n\n   # Install build tools needed for CrabLang. If you're building a 32-bit compiler,\n   # then replace \"x86_64\" below with \"i686\". If you've already got Git, Python,\n   # or CMake installed and in PATH you can remove them from this list.\n   # Note that it is important that you do **not** use the 'python2', 'cmake',\n   # and 'ninja' packages from the 'msys2' subsystem.\n   # The build has historically been known to fail with these packages.\n   pacman -S git \\\n               make \\\n               diffutils \\\n               tar \\\n               mingw-w64-x86_64-python \\\n               mingw-w64-x86_64-cmake \\\n               mingw-w64-x86_64-gcc \\\n               mingw-w64-x86_64-ninja\n   ```\n\n4. Navigate to CrabLang's source code (or clone it), then build it:\n\n   ```sh\n   .\u002Fx.py build && .\u002Fx.py install\n   ```\n\n#### MSVC\n\nMSVC builds of CrabLang additionally require an installation of Visual Studio 2017\n(or later) so `crabc` can use its linker.  The simplest way is to get\n[Visual Studio], check the \"C++ build tools\" and \"Windows 10 SDK\" workload.\n\n[Visual Studio]: https:\u002F\u002Fvisualstudio.microsoft.com\u002Fdownloads\u002F\n\n(If you're installing CMake yourself, be careful that \"C++ CMake tools for\nWindows\" doesn't get included under \"Individual components\".)\n\nWith these dependencies installed, you can build the compiler in a `cmd.exe`\nshell with:\n\n```sh\npython x.py build\n```\n\nRight now, building CrabLang only works with some known versions of Visual Studio.\nIf you have a more recent version installed and the build system doesn't\nunderstand, you may need to force crablangbuild to use an older version.\nThis can be done by manually calling the appropriate vcvars file before running\nthe bootstrap.\n\n```batch\nCALL \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat\"\npython x.py build\n```\n\n#### Specifying an ABI\n\nEach specific ABI can also be used from either environment (for example, using\nthe GNU ABI in PowerShell) by using an explicit build triple. The available\nWindows build triples are:\n- GNU ABI (using GCC)\n    - `i686-pc-windows-gnu`\n    - `x86_64-pc-windows-gnu`\n- The MSVC ABI\n    - `i686-pc-windows-msvc`\n    - `x86_64-pc-windows-msvc`\n\nThe build triple can be specified by either specifying `--build=\u003Ctriple>` when\ninvoking `x.py` commands, or by creating a `config.toml` file (as described in\n[Installing from Source](#installing-from-source)), and modifying the `build`\noption under the `[build]` section.\n\n### Configure and Make\n\nWhile it's not the recommended build system, this project also provides a\nconfigure script and makefile (the latter of which just invokes `x.py`).\n\n```sh\n.\u002Fconfigure\nmake && sudo make install\n```\n\n`configure` generates a `config.toml` which can also be used with normal `x.py`\ninvocations.\n\n## Building Documentation\n\nIf you'd like to build the documentation, it's almost the same:\n\n```sh\n.\u002Fx.py doc\n```\n\nThe generated documentation will appear under `doc` in the `build` directory for\nthe ABI used. That is, if the ABI was `x86_64-pc-windows-msvc`, the directory\nwill be `build\\x86_64-pc-windows-msvc\\doc`.\n\n## Notes\n\nSince the CrabLang compiler is written in CrabLang, it must be built by a precompiled\n\"snapshot\" version of itself (made in an earlier stage of development).\nAs such, source builds require an Internet connection to fetch snapshots, and an\nOS that can execute the available snapshot binaries.\n\nSee https:\u002F\u002Fdoc.crablang.org\u002Fnightly\u002Fcrabc\u002Fplatform-support.html for a list of\nsupported platforms.\nOnly \"host tools\" platforms have a pre-compiled snapshot binary available; to\ncompile for a platform without host tools you must cross-compile.\n\nYou may find that other platforms work, but these are our officially supported\nbuild environments that are most likely to work.\n\n## Getting Help\n\nNeed help? Join us on discord at https:\u002F\u002Fcommunity.crablang.org! \n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md).\n\n## License\n\nCrabLang is primarily distributed under the terms of both the MIT license and the\nApache License (Version 2.0), with portions covered by various BSD-like\nlicenses.\n\nSee [LICENSE-APACHE](LICENSE-APACHE), [LICENSE-MIT](LICENSE-MIT), and\n[COPYRIGHT](COPYRIGHT) for details.\n\n## Trademark\n\nIf you want to use any names or brands associated with Crab or CrabLang, please feel free to do so in any capacity.\n\nThird-party logos may be subject to third-party copyrights and trademarks. See\n[Licenses][policies-licenses] for details.\n\n[crablang-foundation]: https:\u002F\u002Ffoundation.crablang.org\u002F\n[media-guide]: https:\u002F\u002Ffoundation.crablang.org\u002Fpolicies\u002Flogo-policy-and-media-guide\u002F\n[policies-licenses]: https:\u002F\u002Fwww.crablang.org\u002Fpolicies\u002Flicenses\n","Crab 是一个基于 Rust 语言的社区分支，旨在提供一种更加灵活且无官僚主义的编程体验。它保留了 Rust 的内存安全特性，并通过简化治理结构来加速开发流程。该项目包括编译器、标准库和文档等核心组件，支持从源码构建并提供了详细的安装指南。适合那些希望在保持 Rust 语言优势的同时，寻求更开放和快速迭代开发环境的开发者使用。",2,"2026-06-11 03:04:52","top_language"]