1(in-package #:cl-user)
2
3;;;; Licensed under the Apache License, Version 2.0 (the "License");
4;;;; you may not use this file except in compliance with the License.
5;;;; You may obtain a copy of the License at
6;;;;
7;;;;     http://www.apache.org/licenses/LICENSE-2.0
8;;;;
9;;;; Unless required by applicable law or agreed to in writing, software
10;;;; distributed under the License is distributed on an "AS IS" BASIS,
11;;;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12;;;; See the License for the specific language governing permissions and
13;;;; limitations under the License.
14
15(require "asdf")
16(load (merge-pathnames "load-locally.lisp" *load-truename*))
17(require "sb-grovel") ;; necessary for :net.didierverna.clon.termio
18(asdf:load-asd (first (directory (merge-pathnames "../../lib/cl/externals/software/clon-*/termio/net.didierverna.clon.termio.asd"
19                                                  *load-truename*))))
20(asdf:load-system :net.didierverna.clon)
21(asdf:load-asd (merge-pathnames "gen-cl/shared/thrift-gen-shared.asd" *load-truename*))
22(asdf:load-asd (merge-pathnames "gen-cl/tutorial/thrift-gen-tutorial.asd" *load-truename*))
23(asdf:load-asd (merge-pathnames "thrift-tutorial.asd" *load-truename*))
24(asdf:load-system :thrift-tutorial)
25
26(net.didierverna.clon:nickname-package)
27
28(defun main ()
29  "Entry point for the binary."
30  (thrift:serve #u"thrift://127.0.0.1:9090" tutorial:calculator))
31
32(clon:dump "TutorialServer" main)
33