• l0_538507
    了解作者
  • 8.5KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-27 01:16
    上传日期
代码空间Rust Starter 该项目是供开发人员在Codespaces中使用的通用入门,它包括基本的系统工具和扩展。 包含什么 这是一个基本环境,应该准备好对其进行扩展,以构建Rust的日常开发环境。 它带有以下软件选择: 系统工具 :命令行工具,用于通过度量标准协议传输数据。 git:Git SCM工具。 :OpenPGP标准的完整和免费的实现。 命令行JSON解析器。 超级用户权限委派工具。 交互式终端(替代bash )。 一个令人愉快的社区驱动框架,用于管理zsh配置。 文本编辑器 构建要素-编译和链接代码的工具 -tls和ssl工具包 防锈工具 除了Rust和Cargo外,图像还带有以下与Rust相关的工具: :安装程序和工具链管理器 :根据样式准则格式化Rust代码的工具 :防止常见错误并改进您的Rust代码的棉绒 VS代码扩展 :RLS的替代
rust-main.zip
  • rust-main
  • LICENSE
    1.1KB
  • src
  • main.rs
    45B
  • Cargo.toml
    208B
  • .devcontainer
  • Dockerfile
    100B
  • devcontainer.json
    416B
  • setup.sh
    875B
  • .gitignore
    8B
  • CODE_OF_CONDUCT.md
    5.1KB
  • README.md
    7.8KB
内容介绍
# Codespaces Rust Starter This project is a generic starter for developers to use in Codespaces that includes basic system tools and extensions. ## What's Included This is a basic environment that should be ready to expand upon to build a day-to-day development envrionment for Rust. It comes with the following software choices: ### System Tools - [curl/curl](https://github.com/curl/curl): the command line tool for transferring data over a metric boatload of protocols. - git: the Git SCM tool. - [gnupg2](https://gnupg.org/): a complete and free implementatiuon of the OpenPGP standard. - [stedolan/jq](https://github.com/stedolan/jq) - a command line JSON parser. - [sudo](https://www.sudo.ws/) - the superuser authority delegation tool. - [zsh](https://www.zsh.org/) - interactive terminal (alternative to `bash`). - [ohmyzsh/ohmyzsh](https://github.com/ohmyzsh/ohmyzsh) - a delightful community driven framework for managing zsh config. - [vim](https://www.vim.org/) - a text editor - build essentials - tools for compiling and linking code - [openssl](https://www.openssl.org/) - tls and ssl toolkit ### Rust Tools Besides Rust and Cargo, the image comes with the following Rust related tooling: - [rustup](https://rustup.rs/): installer and toolchain manager - [rustfmt](https://github.com/rust-lang/rustfmt): a tool for formatting Rust code according to style guidelines - [clippy](https://github.com/rust-lang/rust-clippy): lints to catch common mistakes and improve your Rust code ### VS Code Extensions - [Rust Analyzer](https://marketplace.visualstudio.com/items?itemName=matklad.rust-analyzer): an alternative rust language server to the RLS. - [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb): native debugger based on LLDB. - [Crates](https://marketplace.visualstudio.com/items?itemName=serayuzgur.crates): helps Rust developers managing dependencies with Cargo.toml. - [Live Share](https://marketplace.visualstudio.com/items?itemName=ms-vsliveshare.vsliveshare): collaborative, multi-user remote editing from directly within the editor. ### Operating System - [Ubuntu 18.04](https://releases.ubuntu.com/18.04.4/): The 18.04 LTS version of Ubuntu. ## Usage ### Visual Studio Codespaces #### Inital Creation For usage in VS Codespaces, you're going to want to head over to [online.visualstudio.com](https://online.visualstudio.com) and sign up for VS Codespaces (that process is outside the scope of these instructions). Once you've got an account and are signed in to [online.visualstudio.com](https://online.visualstudio.com), you're going to take the following steps: - Ensure you're on the `/environments` page at [online.visualstudio.com/environments](https://online.visualstudio.com/environments) - In the top right corner, there'll be a "Create environment" button. Click this button, which will open up a panel from the right side of the screen. Fill in the details of this panel: - **Codespace Name:** This will be the visible name of your environment within Codespaces. The value here doesn't particularly matter. - **Git Repository:** This is going to be either the URL you'd `git clone` the repo from or the GitHub `<org OR user>/<repo>` shorthand. For this repo, the easier value would be `codespaces-examples/rust`. - **Instance Type:** For this, you're going to choose your plan - in my case, I'm just going to go with the `Standard (Linux)` plan. For most use cases of this starter, `Basic (Linux)` should suffice. You can also change your plan at any time, as your workload demands. - **Suspend idle environment after:** This is the period of time you want your environment to automatically suspend after you've stopped actively using it. I generally chose 5 minutes and have not had any problems to date. - **Dotfiles (optional):** These are entirely optional, and are available for advanced users. - **Dotfiles Repository:** Using the `git clone` URL or the GitHub `<org OR user>/<repo>` syntax, you can define the repo to pull your dotfiles from. For examples, see [jessfraz/dotfiles](https://github.com/jessfraz/dotfiles) or [fnichol/dotfiles](https://github.com/fnichol/dotfiles). - **Dotfiles Install Command:** The name of the file or the command to run to install your dotfiles. - **Dotfiles Target Path:** The path where your dotfiles should be installed. - Once you've filled out all of those (and resolved any errors in the form validation, if any occurred), you'll be able to click "Create" at the bottom of the panel and your environment will start creating. #### Connecting to your Environment Once you've completed the Creation steps, your environment will be usable from Codespaces until you delete it. You can access it by going to [online.visualstudio.com](https://online.visualstudio.com) and selecting the vertical elipsis menu to connect to it from the browser or launch it in VS Code / VS Code Insiders. When inside of the environment you can change envrionments themselves from the command pallete with the `Codespaces: Connect`. > **Note:** See the [VS Online in the Browser](https://docs.microsoft.com/en-us/visualstudio/online/quickstarts/browser) quickstart for more information. Additionally, if you've installedthe [Visual Studio Codespaces](https://marketplace.visualstudio.com/items?itemName=ms-vsonline.vsonline) extension in VS Code locally, you'll be able to directly connect from VS Code itself. > **Note:** See the [VS Online in VS Code](https://docs.microsoft.com/en-us/visualstudio/online/quickstarts/vscode) quickstart for more information. #### Working Now that you're set up and connected, you should be able to work within your Codespaces environment. ### Developing inside a Container Using [Visual Studio Code](https://code.visualstudio.com/) and a [specific extension](https://aka.ms/vscode-remote/download/extension), we can load this setup in a brand new local [Docker](https://docker.com/) container and use it as a full-featured development environment. Note that this approach requires a few more steps than using the online setup mentioned above. The advantages being that this works offline and there are no costs associated with this approach. It is a great way to play with a setup without having to install everything globally on one's machine! #### Requirements There are 3 main requirements: **VSCode**, **the Remote - Containers VSCode extension** and **Docker**. Follow the instruction [guide here](https://code.visualstudio.com/docs/remote/containers#_installation) and come back here once those 3 components are installed locally. ### Setup To load this setup in a container, we need to point to it. We have many options here, the main ones being to connect to a repository and the other one to open a local folder with the codespace repo checked out. We are going to take the easiest approach and setup the code space directly from this repository. 1. In VSCode, click on the green icon in the lower left corner. ![](https://code.visualstudio.com/assets/docs/remote/common/remote-dev-status-bar.png) 2. Choose `Remote-Containers: Open Repository in container` 3. Type `codespaces-examples/rust` in the prompt. 4. Chose to create a unique volume. 5. Wait until the container is setup and you are connected to it, at this point, it should ask you to install the Language server for the rust-analyzer, go ahead and click "Download now". ![](https://user-images.githubusercontent.com/113/84297926-2ad3da00-ab03-11ea-8045-690eb0763d9f.png) That's it, you are all setup, you can modify and run the code in your local VSCode instance but the code and extensions will run in your container. ## Contributing Contributions are welcome. Please refrain from opinionated additions like linters. However, adding package managers and other DX improvements that are additive like `yarn` are welcome. Contributors must follow the [Code of Conduct](./CODE_OF_CONDUCT.md).
评论
    相关推荐
    • nettfiske:检测网络钓鱼获取证书透明度日志
      使用 SSL证书实时流来标识可能的网络钓鱼域名。 它的灵感来自。 用法 cargo run -- release sample.json 例子 [Nettfiske] Fetching Certificates ... Homoglyph detected youtuḅe.com (Punycode: xn--youtue-tg...
    • PDF to json for free with this tool-crx插件
      文件通过安全协议SSL工作。 将PDF转换为简单的界面中的JSON。 在线转换完成后,所有文件将被删除。 该工具与Google Drive兼容。 该工具可免费试用1个月。 可以购买扩展计划:基本,个人或业务。 开发人员的API可在...
    • json-extract
      json 提取 将 JSON 结构中的值提取为特定值或数据结构。 例子 var extract = require ( 'json-extract' ) ; var exampleInput = { "glossary" : { "title" : "example glossary" , "GlossDiv" : { "title" : ...
    • CURL&JSON;&OPENSSL;
      网上一些AI项目所需要的附加依赖库(curl, json和openssl),在VS平台下编译以方便使用。
    • 简单json解析
      简单的json解析及httpclient3.1免证书认证
    • sslprobe:带有 JSON 输出的 SSLTLS 协议和密码套件扫描器
      带有 JSON 输出的 SSL/TLS 协议和密码套件扫描器 -- noah@hack.se, 2013 Sslprobe 执行基本的 SSL/TLS 握手,从 ClientHello 到 ServerHello Done,并提取支持的密码、证书和功能(例如会话 ID 分配和常见 TLS 扩展...
    • json-0.67.zip
      jettyMulti.zip,多(或单个)项目的Gradle Jetty插件多(或单个)项目的Gradle Jetty插件
    • json-search-core-lib
      杰森搜索 JsonSearch按路径搜索json 入门 先决条件 正在安装 作者 谢伊·泰斯勒(Shay Tessler) 执照 麻省理工学院
    • nodecg-rest:一个捆绑包,可让您通过REST API与NodeCG进行通信
      功能强大,责任重大,开发人员应确保自己在SSL下正确保护NodeCG,在其安装的cfg/nodecg-rest.json文件夹中创建安全密钥,或以其他方式隔离其NodeCG安装。 此捆绑包可以读取/写入任何复制者,并且可以创建任何任意...
    • timezones-json:时区列表
      时区-json 时区列表 笔记 感谢@ykessler 提供时区列表 执照 麻省理工学院