GithubHelp home page GithubHelp logo

dfinity / canpack Goto Github PK

View Code? Open in Web Editor NEW
9.0 6.0 0.0 625 KB

Package multiple libraries into one ICP canister.

Home Page: https://www.npmjs.com/package/canpack

License: Apache License 2.0

JavaScript 0.33% TypeScript 64.61% Rust 32.18% Motoko 2.88%
candid canister cross-language dfinity icp mops motoko rust language-bindings bundler

canpack's People

Contributors

rvanasa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

canpack's Issues

The requested module '../cache.js' does not provide an export named 'isCached'

I'm getting the following error when running the canpack command

file:///Users/mike/.nvm/versions/node/v20.13.1/lib/node_modules/ic-mops/dist/commands/install.js:10
import { addCache, copyCache, isCached } from '../cache.js';
                              ^^^^^^^^
SyntaxError: The requested module '../cache.js' does not provide an export named 'isCached'

My test project can be found here. Note that I'm not even trying to import any crates yet, but even if I do I get the same error when running canpack

Is this tool in a working state right now?

My ultimate goal is to use the functions exposed in Amazon's S3 rust crate (as described in the Rust section here) from within my Motoko canister. I'm under the impression that I should be able to essentially import it into a rust canister (using canpack) and call its functions from my own Rust canister, and ultimately from one of my Motoko canisters via an inter-canister query.

If this isn't the right way to go about things, I'm all ears! I was referred to canpack via this and this forum post and the referenced thread investigating the ability to do this type of thing.

Any and all advice is appreciated, and thanks for your work on this!

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.