solana/sdk
Jon Cinque 9a366281d3
sdk: Make PubKey::create_program_address available in program unit tests (#11745)
* sdk: Make PubKey::create_program_address available in program unit tests

This finishes the work started in #11604 to have
`create_program_address` available when `target_arch` is not `bpf` and
`program` is enabled.  Otherwise, there is an undefined reference error
to `sol_create_program_address`, which is only defined in `bpf`.

A small test to simply call the function has been added in order to catch
the problem in the future.

The default dependency to `solana-sdk/default` doesn't cause a problem with
existing programs since `build.sh` always specifies
`--no-default-features`, and programs in `solana-program-library` all
use it too.

* Add `default-features = false` for inter-program dependencies

Fix the build error found during CI.  The `--no-default-features` flag
only applies to the top-level package, and not to dependencies.  A program that
depends on another program, i.e. `128bit` which depends on `128bit_dep`,
must specify `default-features = false` when including that package,
otherwise the `bpf` build will try to pull in default packages, which
includes `std`.
2020-08-24 19:28:36 +02:00
..
benches Revert "Land program addresses on the curve (#11174)" (#11253) 2020-07-29 11:33:45 -07:00
bpf Add SystemInstruction::CreateAccount support to CPI (#11649) 2020-08-17 13:38:42 -07:00
docker-solana .sh 2020-07-29 14:12:11 -07:00
macro Bump version to 1.4.0 2020-08-05 12:04:15 -06:00
macro-frozen-abi Bump version to 1.4.0 2020-08-05 12:04:15 -06:00
src sdk: Make PubKey::create_program_address available in program unit tests (#11745) 2020-08-24 19:28:36 +02:00
.gitignore
Cargo.toml Add a client for BankForks (#10728) 2020-08-07 08:45:17 -06:00
build.rs Apply #![feature(proc_macro_hygiene)] when needed 2020-07-14 14:40:02 -07:00