Giter VIP home page Giter VIP logo

rust-competitive-helper

How to use it:

  • Switch default rust toolchain to nightly:
    rustup default nightly
    
  • Install rust-competitive-helper binary:
    cargo install --git https://github.com/rust-competitive-helper/rust-competitive-helper
    
  • Fork example-contests-workspace repository on github, clone it locally, open in CLion
  • In CLion terminal run rust-competitive-helper from current directory

To use with Competitive Companion:

  • Add 4244 to custom ports in plugin
  • Choose "Run listener" in rust-competitive-helper
  • Click "Parse task" in plugin
  • Project for this task will be created and opened in CLion.
  • Testing should be done by running main.rs in corresponding crate
  • Submit ./main/src/main.rs

Config

There is a config file, which is automatically created on the first run.

Default locations:

  • Linux: /home/alice/.config/rust-competitive-helper
  • Windows: C:\Users\Alice\AppData\Roaming\Foo Corp\rust-competitive-helper
  • macOS: /Users/Alice/Library/Preferences/rust-competitive-helper

By default CLion is used to open newly created task, but you can override it to use vscode for example:

open_task_command = [
    '/usr/bin/code',
    '-r',
    '--goto',
    '$FILE:$LINE:$COLUMN',
]

Other stuff

To make git not track changes in auto-generated main.rs file:

git update-index --assume-unchanged main/src/main.rs

If you want to use your version of rust-contest-helper, you can run it like this:

RUST_BACKTRACE=1 cargo run --manifest-path ../rust-competitive-helper/Cargo.toml 

If bug was fixed in this library, and you want cargo to start use new version, run:

cargo update

rust-competitive-helper's Projects

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.