Coder Social home page Coder Social logo

brutus's Introduction

Brutus

Brutus is a terminal multiplexer.

Building

Brutus uses the Bazel build system.

bazel build //src:brutus

Will produce a binary at bazel-bin/src/brutus.

If you have a system installation of Cap'n Proto, you can tell bazel to use it by adding the flag --//:use-system-capnp=true. Otherwise, the Cap'n Proto compiler will be built from source (this can take some time).

Development

Editor Setup

Getting language servers to work well with Bazel and generated code requires some setup.

  1. Make sure you're using rust-analyzer for rust and gopls for go.

  2. Run gen-project-for-rust-analyzer to generate a rust-project.json in the repository root.

    bazel run //:gen-project-for-rust-analyzer
    

    This file supplies Bazel build information to rust-analyzer and will be automatically discovered. Documentation can be found here.

  3. Apply the following language server configurations as appropriate for your editor. The scripts used in these configurations assume you have the capnp binary on your $PATH.

    "rust-analyzer.check.overrideCommand": ["scripts/rustanalyzer-bazel-bridge.sh"],
    
    "gopls.env": {
      "GOPACKAGESDRIVER": "<ABSOLUTE PATH TO REPOSITORY>/scripts/gopls-bazel-bridge.sh",
    }
    
    • VS Code is already configured via .vscode/settings.json.
    • Neovim is already configured via .nvim.lua. This requires vim.opt.exrc = true in your global Neovim configuration.
    • Zed is already configured via .zed/settings.json.

Workflows

Update Bazel dependencies from src/server/Cargo.toml:

CARGO_BAZEL_REPIN=1 bazel sync --only=crate_index

Update Bazel dependencies from src/client/go.mod:

gazelle update-repos -from_file=src/client/go.mod

brutus's People

Contributors

jameseidson avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.