8 Star 33 Fork 7

inherd / coco

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
DEVELOPMENT.md 2.68 KB
一键复制 编辑 原始数据 按行查看 历史
jtong 提交于 2021-03-23 20:45 . add generate excutable binary document

Development

IDE: Clion (Recommended) / IntelliJ + IntelliJ Rust plugin

Rust: Verison >= 1.49.0

Ctags

If you already have older version installed ,please update Rust version by:

rustup update

Setup

1.install Rust

follow https://www.rust-lang.org/tools/install

2.install justfile

follow: https://github.com/casey/just

3.run tests

just tests
  1. build all plugins
cargo build --all

5.test command

cargo run --bin coco

Setup for Windows Subsystem for Linux (Debian)

  1. install rust
apt-get install curl
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  1. install just
cargo install just
  1. install dependency package
sudo apt-get install gcc cmake g++ pkg-config libssl-dev 
sudo apt-get install libfreetype6-dev expat libxml2 libasound2-dev libexpat1-dev libxcb-composite0-dev
  1. build all plugins
cargo build --all
  1. Run tests
just tests

Setup for macOS with HomeBrew

  1. install rust
brew install rustup
rustup-init

restart shell,or execute source $HOME/.cargo/env

  1. install just
brew install just
  1. build plugin
cargo build --all
  1. Run tests
just tests

Architecture

Architecture

Install Ctags

Ubuntu

sudo snap install universal-ctags

macOS

brew update
brew install --HEAD universal-ctags/universal-ctags/universal-ctags

Windows

choco install universal-ctags

Test with version commands

Universal Ctags 5.9.0(d532b5c), Copyright (C) 2015 Universal Ctags Team
Universal Ctags is derived from Exuberant Ctags.
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
  Compiled: Feb 20 2021, 15:16:39
  URL: https://ctags.io/
  Optional compiled features: +wildcards, +regex, +iconv, +option-directory, +xpath, +case-insensitive-filenames, +packcc

Contribute

we need you coding in TDD. You can use this repo to learn TDD : rust-fizzbuzz

Release

Generate Executable Binary

cargo build --all

You will find executable file here:

target
└── debug
    ├── coco
    ├── visual
    └── suggest

Legacy

use conventional-changelog-cli for generate CHANGELOG

npm install -g conventional-changelog-cli
conventional-changelog -p angular -i CHANGELOG.md -s
1
https://gitee.com/inherd/coco.git
git@gitee.com:inherd/coco.git
inherd
coco
coco
master

搜索帮助