Skip to content

Releases: qryxip/cargo-compete

v0.10.7

08 Jun 12:11
fe1b578
Compare
Choose a tag to compare

Changed

  • For ABC cargo-compete no longer extract time limits and the relative/absolute errors, because they are not "specific integers or strings". (qryxip/snowchains#164)

v0.10.6

13 Aug 10:29
a3eb32c
Compare
Choose a tag to compare

Changed

  • Reworked the submit configuration. (#205)

    submit.transpile still works but is deprecated.

    [submit]
    kind = "file"
    path = "{{ src_path }}"
    language_id = "5054" # Atcoder 202301
    [submit]
    kind = "command"
    args = ["cargo", "+1.70.0", "equip", "--exclude-atcoder-202301-crates", "--remove", "docs", "--minify", "libs", "--bin", "{{ bin_name }}"]
    language_id = "5054" # Atcoder 202301

    Now the default of submit is:

    [submit]
    kind = "file"
    path = "{{ src_path }}"
    language_id = "4050" # AtCoder 202004

    For today's AGC064, you have to:

    • Update compete.toml:
      • template.new.edition
      • template.new.dependencies
      • test.toolchain
      • submit (as above. note that you also have to write language_id = "5054")
    • Update template-cargo-lock.toml

    before cargo compete new.

    Refer to rust-lang-ja/atcoder-proposal@202301-update-2023-07-17-freeze. This repository should be used in the real AtCoder judge system.

v0.10.5

12 Aug 11:22
9c628c8
Compare
Choose a tag to compare

Fixed

v0.10.4

19 Feb 11:53
10b5fbc
Compare
Choose a tag to compare

Fixed

  • Fixed the problem where test files are mixed up for recent ABC. (#186 by @aoriso)

v0.10.3

29 Jan 10:27
593c6db
Compare
Choose a tag to compare

Fixed

v0.10.2

15 Dec 17:51
0c91300
Compare
Choose a tag to compare

Changed

  • (also applied to the previous versions unless --locked) Updated serde-yaml crate to v0.8.23.

     match:
       Float:
    -    relative_error: 0.000001
    -    absolute_error: 0.000001
    +    relative_error: 1e-6
    +    absolute_error: 1e-6

    dtolnay/serde-yaml@6b83603

Fixed

  • Updated Rust edition, Rust version, and the language ID for Codeforces. (#181 by @nebocco)

v0.10.1

09 Dec 13:33
80844f0
Compare
Choose a tag to compare

Fixed

v0.10.0

06 Nov 16:15
94d19c6
Compare
Choose a tag to compare

Added

  • Added template.new.edition field. (#175)

    # `edition` for `Cargo.toml`.
    edition = "2018"
  • Added test.toolchain field. (#173)

    # Toolchain for the test. (optional)
    toolchain = "1.42.0"

Changed

  • cargo compete init no longer generate rust-toolchains. (#173)

Fixed

  • Updated the Rust versions for cargo compete init. (#175)

  • Inserts a newline between bin and dependencies. (#175)

     [[bin]]
     name = "practice-b"
     path = "src/bin/b.rs"
    +
     [dependencies]

v0.9.1

21 Sep 14:41
0d1b22b
Compare
Choose a tag to compare

Fixed

  • When using oj-api, prioritize alphabets from get-contest over ones from get-problem. (#166 by @bouzuya)

    Now you can use cargo-compete for AtCoder Problems.

v0.9.0

31 Mar 15:37
d3c7f5f
Compare
Choose a tag to compare

Added

  • Added template.new.dev-dependencies. (#152)

    profile = '''
    [dev]
    opt-level = 3
    '''
    [template.new]
    dependencies = '''
    proconio = "0.3.7"
    '''
    dev-dependencies = '''
    atcoder-202004-lock = { git = "https://github.com/qryxip/atcoder-202004-lock" }
    '''
  • Enabled running for example targets. (#157)

    [package.metadata.cargo-compete.example]
    atcoder-abc188-a = { problem = "https://atcoder.jp/contests/abc188/tasks/abc188_a" }
  • Added add.target-kind configuration. (#157)

Changed

  • Modified the template for the init command. (#156)

     #[submit.transpile]
     #kind = "command"
    -#args = ["cargo", "equip", "--resolve-cfgs", "--remove", "docs", "--minify", "libs", "--rustfmt", "--check", "--bin", "{{ bin_name }}"]
    +#args = ["cargo", "equip", "--exclude-atcoder-crates", "--resolve-cfgs", "--remove", "docs", "--minify", "libs", "--rustfmt", "--check", "--bin", "{{ bin_name }}"]
     ##language_id = ""
  • Updated rust-toolchains for Codeforces and yukicoder. (#153)

  • Now download command requires --overwrite flag to overwrite existing test files. (#158)

    cargo compete d
    error: `/home/ryo/src/local/competitive/atcoder/arc115/testcases/a.yml` already exists. run with `--overwrite` to overwritecargo compete d --overwrite
           Saved 2 test cases to /home/ryo/src/local/competitive/atcoder/arc115/testcases/{a.yml, a/}
           Saved 2 test cases to /home/ryo/src/local/competitive/atcoder/arc115/testcases/{b.yml, b/}
           Saved 1 test case to /home/ryo/src/local/competitive/atcoder/arc115/testcases/{c.yml, c/}
           Saved 2 test cases to /home/ryo/src/local/competitive/atcoder/arc115/testcases/{d.yml, d/}
           Saved 2 test cases to /home/ryo/src/local/competitive/atcoder/arc115/testcases/{e.yml, e/}
           Saved 5 test cases to /home/ryo/src/local/competitive/atcoder/arc115/testcases/{f.yml, f/}