Browse Source

Bump borsh to 0.10.3 (#30975)

* Bump borsh to 0.10.3

transaction-status relies on SPL which still requires borsh 0.9, so
until SPL also gets updated that package alone will use an older version of
borsh.

* ci: Temporarily disable spl and openbook-dex builds
Kevin Ji 2 năm trước cách đây
mục cha
commit
6f378d85aa
1 tập tin đã thay đổi với 5 bổ sung15 xóa
  1. 5 15
      interface/src/instruction.rs

+ 5 - 15
interface/src/instruction.rs

@@ -363,9 +363,7 @@ pub enum SystemInstruction {
 /// [`invoke_signed`]: crate::program::invoke_signed
 ///
 /// ```
-/// # use borsh_derive::BorshDeserialize;
-/// # use borsh::BorshSerialize;
-/// # use borsh::de::BorshDeserialize;
+/// # use borsh::{BorshDeserialize, BorshSerialize};
 /// use solana_program::{
 ///     account_info::{next_account_info, AccountInfo},
 ///     entrypoint,
@@ -581,9 +579,7 @@ pub fn create_account_with_seed(
 /// [`invoke_signed`]: crate::program::invoke_signed
 ///
 /// ```
-/// # use borsh_derive::BorshDeserialize;
-/// # use borsh::BorshSerialize;
-/// # use borsh::de::BorshDeserialize;
+/// # use borsh::{BorshDeserialize, BorshSerialize};
 /// use solana_program::{
 ///     account_info::{next_account_info, AccountInfo},
 ///     entrypoint,
@@ -793,9 +789,7 @@ pub fn assign_with_seed(
 /// [`invoke_signed`]: crate::program::invoke_signed
 ///
 /// ```
-/// # use borsh_derive::BorshDeserialize;
-/// # use borsh::BorshSerialize;
-/// # use borsh::de::BorshDeserialize;
+/// # use borsh::{BorshDeserialize, BorshSerialize};
 /// use solana_program::{
 ///     account_info::{next_account_info, AccountInfo},
 ///     entrypoint,
@@ -1014,9 +1008,7 @@ pub fn transfer_with_seed(
 /// [`invoke_signed`]: crate::program::invoke_signed
 ///
 /// ```
-/// # use borsh_derive::BorshDeserialize;
-/// # use borsh::BorshSerialize;
-/// # use borsh::de::BorshDeserialize;
+/// # use borsh::{BorshDeserialize, BorshSerialize};
 /// use solana_program::{
 ///     account_info::{next_account_info, AccountInfo},
 ///     entrypoint,
@@ -1210,9 +1202,7 @@ pub fn allocate_with_seed(
 /// [`invoke_signed`]: crate::program::invoke_signed
 ///
 /// ```
-/// # use borsh_derive::BorshDeserialize;
-/// # use borsh::BorshSerialize;
-/// # use borsh::de::BorshDeserialize;
+/// # use borsh::{BorshDeserialize, BorshSerialize};
 /// use solana_program::{
 ///     account_info::{next_account_info, next_account_infos, AccountInfo},
 ///     entrypoint,