Coder Social home page Coder Social logo

Comments (6)

Mi1ind avatar Mi1ind commented on May 31, 2024

Commented on lib.rs generation in rune from parser.rs

from rune.

Mi1ind avatar Mi1ind commented on May 31, 2024

Function to override files instead of appending to them. Has been applied to lib.rs.

from rune.

Mi1ind avatar Mi1ind commented on May 31, 2024

In Runefile add 2 capabilities and should see their variables:
CAPABILITY<_,I32> RAND randasas --n 1

  1. Check that RAND is part of runic_types::CAPABILITY ENUM
    if None from runic_types::CAPABILITY::from_str("asdasd") => log::fatal!("INVALID....")
  2. Check that randasas is a variable name that is not already used in capabilities before
  3. For each variable --n 1 Write out the u32.
  4. MODEL parameters need to be put in a hasmap

from rune.

Mi1ind avatar Mi1ind commented on May 31, 2024

Updated Cargo.toml in rune:

Boilerplate has the following dependencies listed:

[dependencies]
no-std-compat = "0.4.1"
wee_alloc = "0.4.5"
runic-types = { path = "../../runic-types" }

the runic-types dependency is not being called with the above path. It outputs the following error (even though i have runic-types repo in the correct location):

[2021-02-10T03:37:20Z ERROR rune::build] Couldn't compile Rune 'failed to get `runic-types` as a dependency of package `rune v0.1.0 (/Users/milind/.rune/runes/2a9beef0-4c7e-42b5-98bb-c50f05530235)`

    Caused by:
        0: failed to load source for dependency `runic-types`
        1: Unable to update /Users/milind/.rune/runic-types
        2: failed to read `/Users/milind/.rune/runic-types/Cargo.toml`
        3: No such file or directory (os error 2)'

Current Work around:

runic-types = { git = "ssh://[email protected]/hotg-ai/runic-types"  }

from rune.

Mi1ind avatar Mi1ind commented on May 31, 2024

Things to add to documentation

  • Need rustup target add wasm32-unknown-unknown to install core and std crates.
  • Use nightly version of rust. Run following command rustup default nightly (some features have not been added to stable so rune won't compile on it)

from rune.

Mi1ind avatar Mi1ind commented on May 31, 2024

Still having issues with lib.rs in the rune:

error[E0432]: unresolved imports `runic_types::CAPABILITY`, `runic_types::PARAM_TYPE`, `runic_types::OUTPUT`
  --> src/lib.rs:14:19
   |
14 | use runic_types::{CAPABILITY, PARAM_TYPE, OUTPUT};
   |                   ^^^^^^^^^^  ^^^^^^^^^^  ^^^^^^ no `OUTPUT` in the root
   |                   |           |
   |                   |           no `PARAM_TYPE` in the root
   |                   no `CAPABILITY` in the root

error[E0432]: unresolved import `runic_transform`
  --> src/lib.rs:15:5
   |
15 | use runic_transform::{Transform, Transformable};
   |     ^^^^^^^^^^^^^^^ use of undeclared crate or module `runic_transform`

error: cannot find macro `vec` in this scope
 --> src/sine_model.rs:2:12
  |
2 |     return vec![
  |            ^^^
  |
  = note: consider importing this macro:
          alloc::vec

from rune.

Related Issues (20)

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.