1. 17 Nov, 2018 1 commit
  2. 26 Aug, 2018 1 commit
  3. 25 Aug, 2018 1 commit
  4. 15 Aug, 2018 1 commit
  5. 05 Aug, 2018 1 commit
  6. 24 Jun, 2018 1 commit
  7. 21 Apr, 2018 1 commit
  8. 19 Apr, 2018 1 commit
  9. 23 Dec, 2017 5 commits
    • Kenton Varda's avatar
      deb65e9a
    • Kenton Varda's avatar
      cec589a9
    • Kenton Varda's avatar
    • Kenton Varda's avatar
      Properly set PWD when executing code generator plugins. · 5c08829a
      Kenton Varda authored
      Otherwise, using kj::newDiskFilesystem() in the plugin complains.
      5c08829a
    • Kenton Varda's avatar
      Change capnp tool to use filesystem API. · e2a9467b
      Kenton Varda authored
      In addition to cleaner code, this has the effect of fixing a number of issues:
      - Fixes #494: Windows paths are now parsed and handled a lot better. On Windows, backslashes are handled appropriately, as are absolute paths with drive letters.
      - Fixes #288: Specifing a source path starting with ".." without an appropriate --src-prefix will no longer cause output files to be generated outside of the specified output directory. Instead, the output name will be based on the absolute path, and a warning will be written since this is probably not what anyone wants.
      - It's no longer necessary for --src-prefix to exactly match character-for-character. Instead, the prefix and source paths are canonicalized before matching. It even works if one is relative and the other absolute.
      - Relative paths are now consistently always evaluated in path space, so ".." always cancels the previous path component and the OS/filesystem never even sees that it was there. This used to be the case in some places but not others. This behavior is important for symlink-heavy source trees: the path "foo/some-symlink/.." is now always designates "foo", rather than designating the parent directory of the symlink's target.
      
      This change does not update the code generator plugins nor the SchemaParser API. Those will come in separate commits.
      e2a9467b
  10. 14 Aug, 2017 3 commits
  11. 28 Jul, 2017 2 commits
    • Kenton Varda's avatar
      Make old GCC happy. · 3bd11689
      Kenton Varda authored
      3bd11689
    • Kenton Varda's avatar
      Add new `capnp convert` command with JSON support. · c4c5e404
      Kenton Varda authored
      This supersedes the `capnp encode` and `capnp decode` commands. It didn't make sense to add JSON to those commands since it was unclear if JSON should be thought of as the "encoded" or "decoded" format. `convert` allows mapping anything to anything.
      
      This command is also useful for, say, converting unpacked format to packed format or vice versa, which can now be done without a schema.
      c4c5e404
  12. 29 Jun, 2017 1 commit
  13. 05 Jun, 2017 1 commit
  14. 19 May, 2017 1 commit
  15. 25 Apr, 2017 1 commit
  16. 20 May, 2016 1 commit
    • Harris Hancock's avatar
      Depend on kj/miniposix.h instead of unistd.h in most places · 669469ca
      Harris Hancock authored
      This is necessary to get things working in MSVC. Note I swapped unistd.h
      for miniposix.h in the compiler, too, which will be necessary to port the
      compiler to MSVC.
      
      This commit also pulls capnp/compiler/capnp.c++'s pipe() implementation
      details (i.e., 8k reserved memory, _O_BINARY mode) into kj/miniposix.h.
      669469ca
  17. 27 Mar, 2016 1 commit
    • Kenton Varda's avatar
      Allow --packed and --flat to be used together. · 4361912b
      Kenton Varda authored
      In Sandstorm, we are encoding powerbox queries in packed base64 strings which may be placed in URL query parameters or the like. The strings are provided in interfaces called browser-side. We anticipate that some developers will prefer to specify a hardcoded string rather than generate it on-the-fly, since Cap'n Proto is not well-supported in browsers today, and anyway the developer may have no other reason to have a Cap'n Proto dependency at all, and powerbox queries are often static.
      
      In this context, speed is irrelevant, while having a compact encoding is desirable. It felt sad to me to leave in the segment table in this context, adding redundant bytes when we want a compact encoding.
      4361912b
  18. 29 Jul, 2015 1 commit
  19. 16 Mar, 2015 1 commit
  20. 14 Mar, 2015 1 commit
  21. 27 Jan, 2015 1 commit
  22. 12 Dec, 2014 1 commit
  23. 29 Nov, 2014 2 commits
  24. 18 Nov, 2014 1 commit
  25. 17 Oct, 2014 1 commit
  26. 11 Oct, 2014 1 commit
  27. 07 Aug, 2014 1 commit
  28. 13 Jul, 2014 1 commit
  29. 28 Jun, 2014 1 commit
  30. 20 Jun, 2014 1 commit
    • Kenton Varda's avatar
      Change license to MIT. · 889204fe
      Kenton Varda authored
      For portions currently copyright by Kenton (most of it), transfer copyright to Sandstorm Development Group, Inc. (Kenton's company).
      
      The license change is practically meaningless, as MIT and BSD 2-clause are legally equivalent. However, the BSD 2-clause license is sometimes confused for its ugly siblings, BSD 3-clause and BSD 4-clause. The MIT license is more immediately recognizeable for what it is.
      
      Rémy Blank and Jason Choy (the two non-trivial contributors) are on record as approving this change:
      
      https://groups.google.com/d/msg/capnproto/xXDd2HUOCcc/gbe_COIuXKYJ
      889204fe
  31. 06 Dec, 2013 1 commit
  32. 30 Nov, 2013 1 commit