@layerzerolabs/oapp-macros-stellar-contracts 0.2.122 → 0.2.124

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +5 -3
  2. package/rustfmt.toml +8 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/oapp-macros-stellar-contracts",
3
- "version": "0.2.122",
3
+ "version": "0.2.124",
4
4
  "private": false,
5
5
  "description": "Stellar OApp procedural macros",
6
6
  "license": "MIT",
@@ -13,7 +13,7 @@
13
13
  "clippy.toml"
14
14
  ],
15
15
  "devDependencies": {
16
- "@layerzerolabs/vm-tooling-stellar": "0.2.122"
16
+ "@layerzerolabs/vm-tooling-stellar": "0.2.124"
17
17
  },
18
18
  "publishConfig": {
19
19
  "access": "public",
@@ -31,7 +31,9 @@
31
31
  "build": "pnpm exec lz-tool --script \"cargo build\" stellar",
32
32
  "clean": "rm -rf ./target ./node_modules",
33
33
  "format": "pnpm exec lz-tool --script \"cargo fmt\" stellar",
34
- "lint": "pnpm exec lz-tool --script \"cargo clippy -- -D warnings\" stellar",
34
+ "format:check": "pnpm exec lz-tool --script \"cargo fmt -- --check\" stellar",
35
+ "lint": "pnpm exec lz-tool --script \"cargo fmt -- --check && cargo clippy --all-targets -- -D warnings\" stellar",
36
+ "lint:fix": "pnpm exec lz-tool --script \"cargo clippy --all-targets --fix --allow-dirty --allow-staged && cargo fmt\" stellar",
35
37
  "test": "pnpm exec lz-tool --script \"cargo nextest run\" stellar"
36
38
  }
37
39
  }
package/rustfmt.toml CHANGED
@@ -1,15 +1,12 @@
1
- format_macro_bodies = true
1
+ # Only stable rustfmt options are kept here: the Stellar docker toolchain runs
2
+ # rustfmt on the stable channel (rust 1.90.0), which silently drops unstable
3
+ # options (they only apply on nightly). Do not re-add unstable options unless the
4
+ # tooling is switched to a pinned nightly (see the Solana packages for that setup).
2
5
  max_width = 120
3
- format_macro_matchers = true
4
- format_strings = true
5
- imports_granularity = "Crate"
6
- match_arm_blocks = false
7
- reorder_impl_items = true
8
- group_imports = "StdExternalCrate"
9
6
  use_field_init_shorthand = true
10
7
  use_small_heuristics = "Max"
11
- wrap_comments = true
12
- format_code_in_doc_comments = true
13
8
 
14
- # most of these are unstable, so we enable them
15
- unstable_features = true
9
+ # style_edition is a stable option honored by the docker toolchain. Pin it to
10
+ # 2021 to match every crate's `edition = "2021"` so formatting stays stable
11
+ # across rustfmt versions (setting it to 2024 would reformat the code).
12
+ style_edition = "2021"