repo_id stringclasses 563
values | file_path stringlengths 40 166 | content stringlengths 1 2.94M | __index_level_0__ int64 0 0 |
|---|---|---|---|
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/instruction.rs | //! Instruction types
use {
super::{
check_program_account, check_spl_token_program_account,
error::TokenError,
extension::{transfer_fee::instruction::TransferFeeInstruction, ExtensionType},
native_mint,
pod::{pod_from_bytes, pod_get_packed_len},
},
bytemuck::Pod,
... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022 | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension/non_transferable.rs | use {
crate::program::spl_token_2022::extension::{Extension, ExtensionType},
bytemuck::{Pod, Zeroable},
};
/// Indicates that the tokens from this mint can't be transferred
#[derive(Clone, Copy, Debug, Default, PartialEq, Pod, Zeroable)]
#[repr(transparent)]
pub struct NonTransferable;
impl Extension for NonT... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022 | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension/mint_close_authority.rs | use {
crate::program::spl_token_2022::{
extension::{Extension, ExtensionType},
pod::*,
},
bytemuck::{Pod, Zeroable},
};
/// Close authority extension data for mints.
#[repr(C)]
#[derive(Clone, Copy, Debug, Default, PartialEq, Pod, Zeroable)]
pub struct MintCloseAuthority {
/// Optional ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022 | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension/mod.rs | // //! Extensions available to token mints and accounts
use {
super::{
error::TokenError,
extension::{
// TODO:
// confidential_transfer::{ConfidentialTransferAccount, ConfidentialTransferMint},
default_account_state::DefaultAccountState,
immutable_ow... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022 | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension/reallocate.rs | use {
crate::program::spl_token_2022::{
error::TokenError,
extension::{set_account_type, AccountType, ExtensionType, StateWithExtensions},
processor::Processor,
state::Account,
},
solana_sdk::{
account_info::{next_account_info, AccountInfo},
entrypoint::Progra... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022 | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension/immutable_owner.rs | use {
super::{Extension, ExtensionType},
bytemuck::{Pod, Zeroable},
};
/// Indicates that the Account owner authority cannot be changed
#[derive(Clone, Copy, Debug, Default, PartialEq, Pod, Zeroable)]
#[repr(transparent)]
pub struct ImmutableOwner;
impl Extension for ImmutableOwner {
const TYPE: Extension... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension/interest_bearing_mint/processor.rs | use {
crate::program::spl_token_2022::{
check_program_account,
error::TokenError,
extension::{
interest_bearing_mint::{
instruction::{InitializeInstructionData, InterestBearingMintInstruction},
BasisPoints, InterestBearingConfig,
},
... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension/interest_bearing_mint/mod.rs | use {
crate::program::spl_token_2022::{
extension::{Extension, ExtensionType},
pod::{OptionalNonZeroPubkey, PodI16, PodI64},
},
bytemuck::{Pod, Zeroable},
solana_sdk::program_error::ProgramError,
std::convert::TryInto,
};
/// Interest-bearing mint extension instructions
pub mod inst... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension/interest_bearing_mint/instruction.rs | use {
crate::program::spl_token_2022::{
check_program_account,
extension::interest_bearing_mint::BasisPoints,
instruction::{encode_instruction, TokenInstruction},
pod::OptionalNonZeroPubkey,
},
bytemuck::{Pod, Zeroable},
num_enum::{IntoPrimitive, TryFromPrimitive},
so... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension/memo_transfer/processor.rs | use {
crate::program::spl_token_2022::{
check_program_account,
extension::{
memo_transfer::{instruction::RequiredMemoTransfersInstruction, MemoTransfer},
StateWithExtensionsMut,
},
instruction::decode_instruction_type,
processor::Processor,
sta... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension/memo_transfer/mod.rs | use {
crate::program::{
spl_memo,
spl_token_2022::{
error::TokenError,
extension::{Extension, ExtensionType, StateWithExtensionsMut},
pod::PodBool,
state::Account,
},
},
bytemuck::{Pod, Zeroable},
solana_sdk::{
instruction::... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension/memo_transfer/instruction.rs | use {
crate::program::spl_token_2022::{
check_program_account,
instruction::{encode_instruction, TokenInstruction},
},
num_enum::{IntoPrimitive, TryFromPrimitive},
solana_sdk::{
instruction::{AccountMeta, Instruction},
program_error::ProgramError,
pubkey::Pubkey,
... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension/transfer_fee/processor.rs | use {
crate::program::spl_token_2022::{
check_program_account,
error::TokenError,
extension::{
transfer_fee::{
instruction::TransferFeeInstruction, TransferFee, TransferFeeAmount,
TransferFeeConfig, MAX_FEE_BASIS_POINTS,
},
... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension/transfer_fee/mod.rs | use {
crate::program::spl_token_2022::{
error::TokenError,
extension::{Extension, ExtensionType},
pod::*,
},
bytemuck::{Pod, Zeroable},
solana_sdk::{clock::Epoch, entrypoint::ProgramResult},
std::{cmp, convert::TryFrom},
};
/// Transfer fee extension instructions
pub mod ins... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension/transfer_fee/instruction.rs | use {
crate::program::spl_token_2022::{
check_program_account, error::TokenError, instruction::TokenInstruction,
},
solana_sdk::{
instruction::{AccountMeta, Instruction},
program_error::ProgramError,
program_option::COption,
pubkey::Pubkey,
},
std::convert::Tr... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension/confidential_transfer/processor.rs | use {
crate::program::spl_token_2022::{
check_program_account,
error::TokenError,
extension::{
confidential_transfer::{instruction::*, *},
StateWithExtensions, StateWithExtensionsMut,
},
instruction::{decode_instruction_data, decode_instruction_type},
... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension/confidential_transfer/mod.rs | use {
crate::program::spl_token_2022::{
error::TokenError,
extension::{Extension, ExtensionType},
pod::*,
},
bytemuck::{Pod, Zeroable},
solana_sdk::{entrypoint::ProgramResult, pubkey::Pubkey},
solana_zk_token_sdk::zk_token_elgamal::pod,
};
/// Maximum bit length of any depos... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension/confidential_transfer/instruction.rs | #[cfg(not(target_os = "solana"))]
use solana_zk_token_sdk::encryption::auth_encryption::AeCiphertext;
pub use solana_zk_token_sdk::zk_token_proof_instruction::*;
use {
crate::program::spl_token_2022::{
check_program_account,
extension::confidential_transfer::*,
instruction::{encode_instructi... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension/default_account_state/processor.rs | use {
crate::program::spl_token_2022::{
check_program_account,
error::TokenError,
extension::{
default_account_state::{
instruction::{decode_instruction, DefaultAccountStateInstruction},
DefaultAccountState,
},
StateWithExte... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension/default_account_state/mod.rs | use {
crate::program::spl_token_2022::extension::{Extension, ExtensionType},
bytemuck::{Pod, Zeroable},
};
/// Default Account state extension instructions
pub mod instruction;
/// Default Account state extension processor
pub mod processor;
/// Default Account::state extension data for mints.
#[repr(C)]
#[d... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_token_2022/extension/default_account_state/instruction.rs | use {
crate::program::spl_token_2022::{
check_program_account, error::TokenError, instruction::TokenInstruction,
state::AccountState,
},
num_enum::{IntoPrimitive, TryFromPrimitive},
solana_sdk::{
instruction::{AccountMeta, Instruction},
program_error::ProgramError,
... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/program/spl_memo/mod.rs | use solana_sdk::{
instruction::{AccountMeta, Instruction},
pubkey::Pubkey,
};
/// Legacy symbols from Memo v1
pub mod v1 {
solana_sdk::declare_id!("Memo1UhkJRfHyvLMcVucJwxXeuD728EqVDDwQDxFMNo");
}
solana_sdk::declare_id!("MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr");
/// Build a memo instruction, possib... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/account_decoder/parse_token_extension.rs | use solana_sdk::pubkey::Pubkey;
use crate::program::spl_token_2022::extension;
#[derive(Debug, Serialize, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UiTransferFee {
pub epoch: u64,
pub maximum_fee: u64,
pub transfer_fee_basis_points: u16,
}
impl From<extension::transfer_fe... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/account_decoder/parse_token.rs | use std::str::FromStr;
use super::{parse_token_extension::UiExtension, StringAmount, StringDecimals};
use crate::program::spl_token_2022::state::AccountState;
#[derive(Debug, Serialize, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub enum UiAccountState {
Uninitialized,
Initialized,
Fr... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-extra/src/account_decoder/mod.rs | pub mod parse_token;
pub mod parse_token_extension;
use std::str::FromStr;
use serde_json::Value;
use solana_sdk::{
account::{ReadableAccount, WritableAccount},
clock::Epoch,
instruction::InstructionError,
pubkey::Pubkey,
};
// TODO:
// use spl_token_2022::extension::{self, BaseState, ExtensionType, S... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-clap-v3-utils/Cargo.toml | [package]
name = "solana-clap-v3-utils-wasm"
version = "1.11.0"
description = "Solana WASM utilities for clap v3"
authors = ["Acheron <acheroncrypto@gmail.com>"]
repository = "https://github.com/solana-playground/solana-playground"
license = "Apache-2.0"
homepage = "https://beta.solpg.io"
edition = "2021"
keywords = ["... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-clap-v3-utils | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-clap-v3-utils/src/offline.rs | use {
crate::{input_validators::*, ArgConstant},
clap::{Arg, Command},
};
pub const BLOCKHASH_ARG: ArgConstant<'static> = ArgConstant {
name: "blockhash",
long: "blockhash",
help: "Use the supplied blockhash",
};
pub const SIGN_ONLY_ARG: ArgConstant<'static> = ArgConstant {
name: "sign_only",
... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-clap-v3-utils | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-clap-v3-utils/src/memo.rs | use {crate::ArgConstant, clap::Arg};
pub const MEMO_ARG: ArgConstant<'static> = ArgConstant {
name: "memo",
long: "--with-memo",
help: "Specify a memo string to include in the transaction.",
};
pub fn memo_arg<'a>() -> Arg<'a> {
Arg::new(MEMO_ARG.name)
.long(MEMO_ARG.long)
.takes_value... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-clap-v3-utils | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-clap-v3-utils/src/lib.rs | use thiserror::Error;
pub struct ArgConstant<'a> {
pub long: &'a str,
pub name: &'a str,
pub help: &'a str,
}
/// Error type for forwarding Errors out of `main()` of a `clap` app
/// and still using the `Display` formatter
#[derive(Error)]
#[error("{0}")]
pub struct DisplayError(Box<dyn std::error::Error>... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-clap-v3-utils | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-clap-v3-utils/src/nonce.rs | use {
crate::{input_validators::*, offline::BLOCKHASH_ARG, ArgConstant},
clap::{Arg, Command},
};
pub const NONCE_ARG: ArgConstant<'static> = ArgConstant {
name: "nonce",
long: "nonce",
help: "Provide the nonce account to use when creating a nonced \n\
transaction. Nonced transactions ar... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-clap-v3-utils | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-clap-v3-utils/src/input_validators.rs | use {
crate::keypair::{parse_signer_source, SignerSourceKind, ASK_KEYWORD},
chrono::DateTime,
solana_sdk::{
clock::{Epoch, Slot},
hash::Hash,
pubkey::{Pubkey, MAX_SEED_LEN},
signature::{read_keypair_file, Signature},
},
std::{fmt::Display, str::FromStr},
};
fn is_par... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-clap-v3-utils | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-clap-v3-utils/src/fee_payer.rs | use {
crate::{input_validators, ArgConstant},
clap::Arg,
};
pub const FEE_PAYER_ARG: ArgConstant<'static> = ArgConstant {
name: "fee_payer",
long: "fee-payer",
help: "Specify the fee-payer account. This may be a keypair file, the ASK keyword \n\
or the pubkey of an offline signer, provid... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-clap-v3-utils | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-clap-v3-utils/src/input_parsers.rs | use {
crate::keypair::{
keypair_from_seed_phrase, pubkey_from_path, resolve_signer_from_path, signer_from_path,
ASK_KEYWORD, SKIP_SEED_PHRASE_VALIDATION_ARG,
},
chrono::DateTime,
clap::ArgMatches,
solana_remote_wallet::remote_wallet::RemoteWalletManager,
solana_sdk::{
clo... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-clap-v3-utils | solana_public_repos/solana-playground/solana-playground/wasm/utils/solana-clap-v3-utils/src/keypair.rs | //! Loading signers and keypairs from the command line.
//!
//! This module contains utilities for loading [Signer]s and [Keypair]s from
//! standard signing sources, from the command line, as in the Solana CLI.
//!
//! The key function here is [`signer_from_path`], which loads a `Signer` from
//! one of several possib... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/pkgs | solana_public_repos/solana-playground/solana-playground/wasm/pkgs/playnet/playnet_bg.js | import * as wasm from './playnet_bg.wasm';
const heap = new Array(32).fill(undefined);
heap.push(undefined, null, true, false);
function getObject(idx) { return heap[idx]; }
let heap_next = heap.length;
function dropObject(idx) {
if (idx < 36) return;
heap[idx] = heap_next;
heap_next = idx;
}
function... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/pkgs | solana_public_repos/solana-playground/solana-playground/wasm/pkgs/playnet/playnet.js | import * as wasm from "./playnet_bg.wasm";
export * from "./playnet_bg.js"; | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/pkgs | solana_public_repos/solana-playground/solana-playground/wasm/pkgs/playnet/playnet.d.ts | /* tslint:disable */
/* eslint-disable */
/**
* Initialize Javascript logging and panic handler
*/
export function solana_program_init(): void;
/**
*/
export enum WasmCommitmentLevel {
Processed,
Confirmed,
Finalized,
}
/**
* Metadata for a confirmed transaction on the ledger
*/
export class ConfirmedTransactionM... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/pkgs | solana_public_repos/solana-playground/solana-playground/wasm/pkgs/playnet/package.json | {
"name": "playnet",
"collaborators": [
"Acheron <acheroncrypto@gmail.com>"
],
"description": "A minimal runtime to execute Solana programs",
"version": "0.1.0",
"license": "GPL-3.0",
"repository": {
"type": "git",
"url": "https://github.com/solana-playground/solana-playground"
},
"files":... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/pkgs | solana_public_repos/solana-playground/solana-playground/wasm/pkgs/playnet/playnet_bg.wasm.d.ts | /* tslint:disable */
/* eslint-disable */
export const memory: WebAssembly.Memory;
export function __wbg_pgrpc_free(a: number): void;
export function pgrpc_getAccountInfo(a: number, b: number, c: number): number;
export function pgrpc_getSlot(a: number): number;
export function pgrpc_getBlockHeight(a: number): number;
... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/pkgs | solana_public_repos/solana-playground/solana-playground/wasm/pkgs/rustfmt/rustfmt_wasm.d.ts | /* tslint:disable */
export function rustfmt(arg0: string): RustfmtResult;
export class RustfmtResult {
free(): void;
code(): string;
error(): string;
}
| 0 |
solana_public_repos/solana-playground/solana-playground/wasm/pkgs | solana_public_repos/solana-playground/solana-playground/wasm/pkgs/rustfmt/package.json | {
"name": "rustfmt-wasm",
"collaborators": [
"Acheron <acheroncrypto@gmail.com>"
],
"description": "Rust formatter for WASM",
"version": "0.99.4",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/solana-playground/solana-playground"
},
"files": [
"rust... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/pkgs | solana_public_repos/solana-playground/solana-playground/wasm/pkgs/rustfmt/rustfmt_wasm.js | /* tslint:disable */
import * as wasm from './rustfmt_wasm_bg';
let cachedTextDecoder = new TextDecoder('utf-8');
let cachegetUint8Memory = null;
function getUint8Memory() {
if (cachegetUint8Memory === null || cachegetUint8Memory.buffer !== wasm.memory.buffer) {
cachegetUint8Memory = new Uint8Array(wasm.m... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/pkgs | solana_public_repos/solana-playground/solana-playground/wasm/pkgs/rustfmt/rustfmt_wasm_bg.d.ts | /* tslint:disable */
export const memory: WebAssembly.Memory;
export function __wbindgen_global_argument_ptr(): number;
export function __wbindgen_malloc(a: number): number;
export function __wbindgen_free(a: number, b: number): void;
export function rustfmt(a: number, b: number): number;
export function __wbg_rustfmtr... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm | solana_public_repos/solana-playground/solana-playground/wasm/seahorse-compile/Cargo.toml | [package]
name = "seahorse-compile-wasm"
version = "0.2.0" # mirror seahorse-dev version
edition = "2021"
authors = ["Callum McIntyre <callum.mcintyre@solana.com>"]
description = "Seahorse compiler for Solana Playground with WASM."
repository = "https://github.com/solana-playground/solana-playground"
license = "GPL-3.0... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/seahorse-compile | solana_public_repos/solana-playground/solana-playground/wasm/seahorse-compile/src/lib.rs | use std::{panic, path::PathBuf, str::FromStr};
use seahorse_dev::core::{compile, Tree};
use solana_playground_utils_wasm::js::PgTerminal;
use wasm_bindgen::prelude::*;
#[wasm_bindgen(js_name = "compileSeahorse")]
pub fn compile_seahorse(python_source: String, program_name: String) -> Vec<JsValue> {
panic::set_hoo... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/Cargo.toml | [workspace]
members = [
"deps/*",
"rustfmt-wasm",
# Not including rustfmt-nightly to the workspace because of incompatible deps
]
[profile.release]
lto = true | 0 |
solana_public_repos/solana-playground/solana-playground/wasm | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/Cargo.lock | [[package]]
name = "aho-corasick"
version = "0.6.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"memchr 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "arena"
version = "0.0.0"
dependencies = [
"rustc_data_structures 0.0.0",
]
[[package]]
n... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rust-toolchain.toml | [toolchain]
channel = "nightly-2018-09-07"
targets = [ "wasm32-unknown-unknown" ]
| 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/Cargo.toml | [package]
name = "rustfmt-nightly"
version = "0.99.4"
authors = ["Nicholas Cameron <ncameron@mozilla.com>", "The Rustfmt developers"]
description = "Tool to find and fix Rust formatting issues"
repository = "https://github.com/rust-lang-nursery/rustfmt"
readme = "README.md"
license = "Apache-2.0/MIT"
build = "build.rs... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/Cargo.lock | [[package]]
name = "aho-corasick"
version = "0.6.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"memchr 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "arena"
version = "0.0.0"
dependencies = [
"rustc_data_structures 0.0.0",
]
[[package]]
n... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/build.rs | // Copyright 2017 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/closures.rs | // Copyright 2017 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/imports.rs | // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/formatting.rs | // High level formatting functions.
use std::collections::HashMap;
use std::io::{self, Write};
use std::panic::{catch_unwind, AssertUnwindSafe};
use std::rc::Rc;
use std::time::{Duration, Instant};
use syntax::ast;
use syntax::errors::emitter::{ColorConfig, EmitterWriter};
use syntax::errors::Handler;
use syntax::par... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/overflow.rs | // Copyright 2018 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/types.rs | // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/pairs.rs | // Copyright 2018 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/source_map.rs | // Copyright 2016 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/patterns.rs | // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/comment.rs | // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/lists.rs | // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/lib.rs | // Copyright 2015-2018 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MI... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/vertical.rs | // Copyright 2017 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/issues.rs | // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/matches.rs | // Copyright 2018 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/chains.rs | // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/spanned.rs | // Copyright 2017 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/attr.rs | // Copyright 2018 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/items.rs | // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/expr.rs | // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/string.rs | // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/modules.rs | // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/rewrite.rs | // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/missed_spans.rs | // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/macros.rs | // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/shape.rs | // Copyright 2017 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/rustfmt_diff.rs | // Copyright 2017 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/reorder.rs | // Copyright 2018 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/source_file.rs | // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/utils.rs | // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/checkstyle.rs | // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/visitor.rs | // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/format-diff/main.rs | // Copyright 2017 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/test/mod.rs | // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/config/lists.rs | // Copyright 2018 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/config/options.rs | // Copyright 2018 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/config/config_type.rs | // Copyright 2018 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/config/mod.rs | // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/config/file_lines.rs | // Copyright 2016 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/config/license.rs | use std::fmt;
use std::fs::File;
use std::io;
use std::io::Read;
use regex;
use regex::Regex;
#[derive(Debug)]
pub enum LicenseError {
IO(io::Error),
Regex(regex::Error),
Parse(String),
}
impl fmt::Display for LicenseError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match *self {... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/git-rustfmt/main.rs | // Copyright 2018 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-nightly/src/cargo-fmt/main.rs | // Copyright 2015-2016 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MI... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-wasm/Cargo.toml | [package]
name = "rustfmt-wasm"
version = "0.99.4"
description = "Rust formatter for WASM"
authors = ["Acheron <acheroncrypto@gmail.com>"]
repository = "https://github.com/solana-playground/solana-playground"
license = "Apache-2.0"
homepage = "https://beta.solpg.io"
keywords = ["rustfmt", "wasm", "rust", "format", "rus... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-wasm | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/rustfmt-wasm/src/lib.rs | // Fork of https://github.com/alexcrichton/rustfmt-wasm
//
// The patches in the repo including the crates.io patches did not work so had to get the
// rustc deps at the time of the repo creation.
//
// Though this repository is from 2018, it still does a good job at formatting rust code.
//
// One would need to compi... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/deps | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/deps/libserialize/Cargo.toml | [package]
authors = ["The Rust Project Developers"]
name = "serialize"
version = "0.0.0"
[lib]
name = "serialize"
path = "lib.rs"
[dependencies]
smallvec = { version = "0.6.5", features = ["union"] }
| 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/deps | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/deps/libserialize/opaque.rs | // Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MI... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/deps | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/deps/libserialize/leb128.rs | // Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MI... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/deps | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/deps/libserialize/collection_impls.rs | // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/deps | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/deps/libserialize/lib.rs | // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MI... | 0 |
solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/deps | solana_public_repos/solana-playground/solana-playground/wasm/rustfmt/deps/libserialize/serialize.rs | // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MI... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.