Coder Social home page Coder Social logo

anchor-gen's People

Contributors

dependabot[bot] avatar everlastingsong avatar macalinao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

anchor-gen's Issues

What is the function of these features?

Just curious what the functions of no-entrypoint, no-idl, and no-log-ix-name are within this context? Are these just accidental holdovers from compiling the actual programs?

Custom Default trait on user-defined IDL structs

Is there a way to handle custom Default trait definition for some of the Defined structs, e.g.:

{
  "name": "MyStruct",
  "type": {
    "kind": "struct",
    "fields": [
      {
        "name": "authority",
        "type": "publicKey"
      },
      {
        "name": "reservedSpace",
        "type": {
          "array": ["u128", 256]
        }
      }
    ]
  }
}

atm the explicit sizes (0-32) in the standard implementation prevents generation:
the trait 'Default' is not implemented for '[u128; 256]'

How to find generated RUST code?

I use anchor-gen in new crates:
image
And used in other crates:
image
But I cannot see the structure field. So, what is detail of generated code?

proc macro are not rebuilt on IDL changes

This can help fix it by tracking the json file, unfortunately nightly and doesn't look like it is ready to be stabilized
rust-lang/rust#99515

Scenario:

Dependency program has a new endpoint, update IDL, still no cpi method for it...

The solution right now is cargo clean then cargo build

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.