Ver Fonte

Extract pubkey crate (#2394)

* extract solana-pubkey from solana-program

* make curve25519_dalek an optional dep

* make sha2 optional in solana-pubkey

* move pubkey wasm code to solana-pubkey

* make serde optional in solana-pubkey

* make bytemuck optional in solana-pubkey

* put syscalls behind target_os = "solana"

* move rand to dev deps

* remove thiserror

* remove num_derive

* make std optional

* use std when target_arch = "wasm32"

* fix frozen-abi support

* update digests

* update digests

* update nits.sh

* update lock file

* make some doc examples text-only because order-crates-for-publishing.py is wrong

* add dev-context-only-utils to appease ci

* fmt

* fix unused import when target_os = "solana"

* fix imports in wasm target

* fix import issue

* activate std feat when borsh feat is activated

* fix a conditional import

* fix more feature issues

* add default-features = false (otherwise we can't disable default features anywhere in the workspace)

* activate std feature explicitly

* clean up imports

* fix test features

* fix lints

* post-rebase fixes

* make FromStr, Display and Debug no_std

* fmt

* update digest

* fix duplicate line post-rebase

* stop avoiding circular dev dep since CI now accommodates this

* make rustc_version optional

* fix doc link

* fix frozen-abi deps

* update digests

* fmt

* don't require std for FromStr

* simplify some imports

* use as_ref instead of to_bytes

Co-authored-by: Jon C <me@jonc.dev>

* use as_ref instead of to_bytes

Co-authored-by: Jon C <me@jonc.dev>

* remove unnecessary test criterion in #[cfg()]

Co-authored-by: Jon C <me@jonc.dev>

* remove unnecessary test criterion in #[cfg()]

Co-authored-by: Jon C <me@jonc.dev>

* remove unrelated change

* but don't remove #[cfg(test)]

* call out doc tests in explanation of circular dev dep

* add missing conversion

* remove unnecessary #[cfg(feature = "std")]

* use strum to check that FromPrimitive impls are exhaustive

* sort deps

* add test for From<u64>

---------

Co-authored-by: Jon C <me@jonc.dev>
Kevin Heavey há 1 ano atrás
pai
commit
afc084bce5
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      interface/src/instruction.rs

+ 1 - 1
interface/src/instruction.rs

@@ -103,7 +103,7 @@ static_assertions::const_assert_eq!(MAX_PERMITTED_DATA_LENGTH, 10_485_760);
 /// An instruction to the system program.
 #[cfg_attr(
     feature = "frozen-abi",
-    frozen_abi(digest = "5e22s2kFu9Do77hdcCyxyhuKHD8ThAB6Q6dNaLTCjL5M"),
+    frozen_abi(digest = "2LnVTnJg7LxB1FawNZLoQEY8yiYx3MT3paTdx4s5kAXU"),
     derive(AbiExample, AbiEnumVisitor)
 )]
 #[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]